mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-28 03:39:28 -05:00
improve error handling
This commit is contained in:
parent
8919d38de9
commit
7aa7d0b5a0
@ -67,10 +67,10 @@ remount_secure() {
|
|||||||
|
|
||||||
if echo "$mount_output" | grep -q "$mount_folder " ; then
|
if echo "$mount_output" | grep -q "$mount_folder " ; then
|
||||||
## Already mounted. Using remount.
|
## Already mounted. Using remount.
|
||||||
mount -o "remount,${new_mount_options}" "$mount_folder"
|
mount -o "remount,${new_mount_options}" "$mount_folder" || exit_code=100
|
||||||
else
|
else
|
||||||
## Not yet mounted. Using mount bind.
|
## Not yet mounted. Using mount bind.
|
||||||
mount -o "$new_mount_options" --bind "$mount_folder" "$mount_folder"
|
mount -o "$new_mount_options" --bind "$mount_folder" "$mount_folder" || exit_code=101
|
||||||
fi
|
fi
|
||||||
|
|
||||||
touch "$status_file_full_path"
|
touch "$status_file_full_path"
|
||||||
|
Loading…
Reference in New Issue
Block a user