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