mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-17 18:04:10 -05:00
refactoring
This commit is contained in:
parent
abc3592734
commit
c069c73109
@ -70,7 +70,7 @@ remount_secure() {
|
|||||||
|
|
||||||
mount_line_of_mount_folder="$(echo "$mount_output" | grep "$mount_folder ")" || true
|
mount_line_of_mount_folder="$(echo "$mount_output" | grep "$mount_folder ")" || true
|
||||||
|
|
||||||
if echo "$mount_line_of_mount_folder" | grep -q "$new_mount_options" ; then
|
if echo "$mount_line_of_mount_folder" | grep --quiet "$new_mount_options" ; then
|
||||||
echo "INFO: $mount_folder has already intended mount options."
|
echo "INFO: $mount_folder has already intended mount options."
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
@ -81,7 +81,7 @@ remount_secure() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
## BUG: echo: write error: Broken pipe
|
## BUG: echo: write error: Broken pipe
|
||||||
if echo "$mount_output" | grep -q "$mount_folder " ; then
|
if echo "$mount_output" | grep --quiet "$mount_folder " ; then
|
||||||
## Already mounted. Using remount.
|
## Already mounted. Using remount.
|
||||||
echo mount -o "remount,${new_mount_options}" "$mount_folder"
|
echo mount -o "remount,${new_mount_options}" "$mount_folder"
|
||||||
mount -o "remount,${new_mount_options}" "$mount_folder" || exit_code=100
|
mount -o "remount,${new_mount_options}" "$mount_folder" || exit_code=100
|
||||||
|
Loading…
x
Reference in New Issue
Block a user