Signed-off-by: Xu Xijian hdxuxijian@163.com --- src/lib/job.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/job.cr b/src/lib/job.cr index c013aa7..89c92c1 100644 --- a/src/lib/job.cr +++ b/src/lib/job.cr @@ -509,7 +509,7 @@ class Job
if "#{os_mount}" == "initramfs" temp_initrds.concat(initramfs_initrds()) - elsif "#{os_mount}" == "nfs" || "#{os_mount}" == "cifs" + elsif "#{os_mount}" == "nfs" || "#{os_mount}" == "cifs" || "#{os_mount}" == "local" temp_initrds.concat(nfs_cifs_initrds()) end
if "#{os_mount}" == "initramfs" temp_initrds.concat(initramfs_initrds())
- elsif "#{os_mount}" == "nfs" || "#{os_mount}" == "cifs"
- elsif "#{os_mount}" == "nfs" || "#{os_mount}" == "cifs" || "#{os_mount}" == "local"
you can use: elsif ["nfs", "cifs", "local"].index os_mount command end
temp_initrds.concat(nfs_cifs_initrds()) end
-- 2.23.0
On Fri, Feb 05, 2021 at 09:11:08AM +0800, Luan Shengde wrote:
if "#{os_mount}" == "initramfs" temp_initrds.concat(initramfs_initrds())
- elsif "#{os_mount}" == "nfs" || "#{os_mount}" == "cifs"
- elsif "#{os_mount}" == "nfs" || "#{os_mount}" == "cifs" || "#{os_mount}" == "local"
you can use: elsif ["nfs", "cifs", "local"].index os_mount command end
OK.
Thanks, Xijian