Move set -e that lsof doesn't trigger exit 1

This commit is contained in:
siegmund-heiss-ich 2023-05-23 01:07:10 +02:00
parent 77c563d1e5
commit 589a630610

View file

@ -1,7 +1,5 @@
#!/bin/bash
set -e
INSTALL_DIRECTORY=$1
NEW_APP_DIRECTORY=$2
APP_PID=$3
@ -45,6 +43,8 @@ do
(( attempt++ ))
done
set -e
# Now replace and reopen.
rm -rf "$INSTALL_DIRECTORY"
mv "$NEW_APP_DIRECTORY" "$INSTALL_DIRECTORY"