From b4ba4de2dc544b75b05f5670cbe4547a13aa6acd Mon Sep 17 00:00:00 2001 From: junepark678 <40409848+junepark678@users.noreply.github.com> Date: Tue, 3 Jan 2023 23:20:11 +0900 Subject: [PATCH] Make palera1n.sh not directory dependant (#308) * Make $dir not working directory dependent * Change all occurrences of $(pwd) and change git $(pwd) -> $(dirname "$0") git -> git -C $(dirname "$0") * Update palera1n.sh --- palera1n.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/palera1n.sh b/palera1n.sh index bfef5ca..c68dacf 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +pushd $(dirname "$0") + mkdir -p logs set -e @@ -1011,3 +1013,5 @@ echo "If you have any issues, please join the Discord server and ask for help: h echo "Enjoy!" } 2>&1 | tee logs/${log} + +popd