fix quoted args to logfile, more descriptive comment

This commit is contained in:
kneutron 2021-04-12 22:56:41 -05:00 committed by GitHub
parent e41e527048
commit 6e947e7ec8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@
# 2016 Dave Bechtel
# REQUIRES zdynpool1 on mnt/milterausb3
# run mkdynamic-grow-pool-boojum.sh and keep the pool at the end
# GOAL - replace all disks in zdynpool1 with larger disks ON THE FLY, no downtime;
# + also deal with if disk2 has already been replaced with spare disk8 (mkdynpoolFAIL ran before this)
@ -57,14 +58,14 @@ function logecho () {
read -e -t2 args
if [ -n "$args" ]; then
echo $args |tee -a $logfile;
echo "$args" |tee -a $logfile;
else
break;
fi
done
else
echo $args |tee -a $logfile;
echo "$args" |tee -a $logfile;
fi
} # END FUNC