From 7aa7d0b5a0e3b602b527131581f350b9b32fb0d6 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Sat, 21 Dec 2019 05:22:27 -0500 Subject: [PATCH] improve error handling --- usr/lib/security-misc/remount-secure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/security-misc/remount-secure b/usr/lib/security-misc/remount-secure index a2c1a83..24b3308 100755 --- a/usr/lib/security-misc/remount-secure +++ b/usr/lib/security-misc/remount-secure @@ -67,10 +67,10 @@ remount_secure() { if echo "$mount_output" | grep -q "$mount_folder " ; then ## Already mounted. Using remount. - mount -o "remount,${new_mount_options}" "$mount_folder" + mount -o "remount,${new_mount_options}" "$mount_folder" || exit_code=100 else ## 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 touch "$status_file_full_path"