From 2455c932b3ee705cbb8513980d54f4ec3cf17212 Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Mon, 14 Jun 2021 13:49:32 +0200 Subject: [PATCH] Refactoring: De-inline conditional command in fix_filesystem_mount_ordering() --- install-zfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-zfs.sh b/install-zfs.sh index ba6fabe..5a7bb75 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -1456,7 +1456,7 @@ function fix_filesystem_mount_ordering { # On Debian, this file may exist already. # - chroot_execute "[[ ! -f /etc/zfs/zed.d/history_event-zfs-list-cacher.sh ]] && ln -s /usr/lib/zfs-linux/zed.d/history_event-zfs-list-cacher.sh /etc/zfs/zed.d/" + chroot_execute "if [[ ! -f /etc/zfs/zed.d/history_event-zfs-list-cacher.sh ]]; then ln -s /usr/lib/zfs-linux/zed.d/history_event-zfs-list-cacher.sh /etc/zfs/zed.d/; fi" # Assumed to be present by the zedlet above on Debian, but missing. # Filed issue: https://github.com/zfsonlinux/zfs/issues/9945.