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
This commit is contained in:
junepark678 authored and GitHub committed 2023-01-03 09:20:11 -05:00
1 parent 4b4502884a
commit b4ba4de2dc
1 file changed
+4
+4
View File
@@ -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