Skip to content

Commit

Permalink
skip checking non-existing file system objects (file, folders) for st…
Browse files Browse the repository at this point in the history
…ray processes still running inside the chroot
  • Loading branch information
adrelanos committed Sep 9, 2022
1 parent c871130 commit ee079e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions help-steps/umount_kill.sh
Expand Up @@ -25,8 +25,11 @@ if [ "$directory" = "/" ]; then
exit 1
fi

## XXX: Should check if file or folder exists?
## XXX: Any other file system objects such as symlinks?
if ! test -e "$directory" ; then
true "INFO: directory does not exist. Skip checking if processes are running there, ok."
true "$0 INFO: end"
exit 0
fi

real_path=$(realpath "$directory") || true

Expand Down

0 comments on commit ee079e3

Please sign in to comment.