refactor: Improve umount and force_unmount functions for better error handling and output formatting
This commit is contained in:
@@ -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