mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
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 <behlendorf1@llnl.gov>
This commit is contained in:
committed by
Brian Behlendorf
parent
0f4524cca4
commit
c8082367cf
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user