Start script now works for all relative paths ensuring runtipi is the current working directory.

This commit is contained in:
dextreem 2022-09-21 07:33:55 +02:00
parent aa79e49f18
commit eb08dd4021

View file

@ -75,7 +75,7 @@ while [ -n "$1" ]; do # while loop starts
done
# Ensure BASH_SOURCE is ./scripts/start.sh
if [[ "${BASH_SOURCE[0]}" != "./scripts/start.sh" ]]; then
if [[ $(basename $(pwd)) != "runtipi" ]] || [[ ! -f "${BASH_SOURCE[0]}" ]]; then
echo "Please make sure this script is executed from runtipi/"
exit 1
fi