mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +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:
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";
|
||||
|
Loading…
Reference in New Issue
Block a user