feat shellcheck: Forgot to go through these scripts with ShellCheck.

This commit is contained in:
prplwtf 2024-01-15 22:09:57 +01:00
parent e4ae89e026
commit 2faf40dd05
2 changed files with 6 additions and 6 deletions

View file

@ -2,6 +2,6 @@
# $1 Pterodactyl directory (pterodactyl)
cd $1/.blueprint;
cd "$1/.blueprint" || exit;
cat extensions/blueprint/private/debug/logs.txt

View file

@ -3,7 +3,7 @@
# $1 Pterodactyl directory (pterodactyl)
# $2 Dev release (dev)
cd $1/tools/tmp;
cd "$1/tools/tmp" || exit;
if [[ $2 != "dev" ]]; then
LOCATION=$(curl -s https://api.github.com/repos/teamblueprint/main/releases/latest \
@ -11,15 +11,15 @@ if [[ $2 != "dev" ]]; then
| awk '{ print $2 }' \
| sed 's/,$//' \
| sed 's/"//g' ) \
; curl -L -o main.zip $LOCATION
; curl -L -o main.zip "$LOCATION"
unzip main.zip;
rm main.zip;
mv * main;
mv ./* main;
else
git clone https://github.com/teamblueprint/main.git;
fi;
cp -R main/* $1/;
cp -R main/* "$1"/;
rm -R main;
rm -R $1/.blueprint;
rm -R "$1"/.blueprint;