mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-11 00:10:00 +07:00
do not exit non-zero if folder does not exist
This commit is contained in:
@ -179,8 +179,8 @@ remount_secure() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if ! test -d "$mount_folder" ; then
|
if ! test -d "$mount_folder" ; then
|
||||||
|
## For example /boot/efi does not always exist on all systems.
|
||||||
$output_command "INFO: '$mount_folder' folder exists: no"
|
$output_command "INFO: '$mount_folder' folder exists: no"
|
||||||
exit_code=102
|
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
$output_command "INFO: '$mount_folder' folder exists: yes"
|
$output_command "INFO: '$mount_folder' folder exists: yes"
|
||||||
|
Reference in New Issue
Block a user