From: Gunnar Beutner Date: Sun, 3 Jul 2011 00:38:50 +0000 (+0200) Subject: Removed erroneous backticks in the zfs.lunar init script. X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=commitdiff_plain;h=c8082367cfe9954f0e932fb1513b518d8b84022d;p=zfs.git Removed erroneous backticks in the zfs.lunar init script. The backticks would cause the output of the zfs commands to be evaluated as input for the if construct rather than their exit status. Signed-off-by: Brian Behlendorf --- diff --git a/etc/init.d/zfs.lunar b/etc/init.d/zfs.lunar index a6ec5c4..c77b2b7 100644 --- a/etc/init.d/zfs.lunar +++ b/etc/init.d/zfs.lunar @@ -35,7 +35,7 @@ case $1 in while IFS= read -r -d $'\n' dev; do mdev=$(echo "$dev" | awk '{ print $1; }') echo -n "mounting $mdev..." - if `zfs mount $mdev`; then + if zfs mount $mdev; then echo -e "done"; else echo -e "failed"; @@ -52,7 +52,7 @@ case $1 in while IFS= read -r -d $'\n' dev; do mdev=$(echo "$dev" | awk '{ print $1 }'); echo -n "umounting $mdev..."; - if `zfs umount $mdev`; then + if zfs umount $mdev; then echo -e "done"; else echo -e "failed";