diff --git a/scripts/systemd-autofs-restart.sh b/scripts/systemd-autofs-restart.sh index 1b51a1268..01d9202cd 100755 --- a/scripts/systemd-autofs-restart.sh +++ b/scripts/systemd-autofs-restart.sh @@ -107,7 +107,7 @@ function save_mountpoint { function restore_mountpoint { local mountpoint=$1 - [ -n "$bindmount" ] || exit 1 + [ -n "$bindmount" ] || return # Umount file system, remounted by systemd, if any if ! check_fs_type $mountpoint "autofs"; then