tweaks
This commit is contained in:
+1
-1
@@ -54,7 +54,7 @@ fi
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Unbinding mounts..."
|
echo "Unbinding mounts..."
|
||||||
errors=$(mount | grep -v zfs | tac | awk '/\/mnt/ {print \$3}' | xargs -i{} umount -lf {} 2>&1 1>/dev/null && zpool export -a 2>&1 1>/dev/null)
|
errors=$(mount | grep -v zfs | tac | awk '/\\/mnt/ {print \$3}' | xargs -i{} umount -lf {} 2>&1 1>/dev/null && zpool export -a 2>&1 1>/dev/null)
|
||||||
if ! [ "$?" = "0" ]; then
|
if ! [ "$?" = "0" ]; then
|
||||||
echo "Failed to unbind mounts - $errors"
|
echo "Failed to unbind mounts - $errors"
|
||||||
exit 4
|
exit 4
|
||||||
|
|||||||
Reference in New Issue
Block a user