refactor: Improve umount and force_unmount functions for better error handling and output formatting
This commit is contained in:
1 parent
3305f5a543
commit
1f17b19f1e
1 file changed
+4
@@ -12,6 +12,8 @@ function unmount() {
|
||||
else
|
||||
echo "Unmount completed: $1"
|
||||
fi
|
||||
else
|
||||
echo "$1 is not mounted"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -23,6 +25,8 @@ function force_unmount() {
|
||||
else
|
||||
echo "Unmount completed: $1"
|
||||
fi
|
||||
else
|
||||
echo "$1 is not mounted"
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user