feat shellcheck
: Forgot to go through these scripts with ShellCheck.
This commit is contained in:
parent
e4ae89e026
commit
2faf40dd05
2 changed files with 6 additions and 6 deletions
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
# $1 Pterodactyl directory (pterodactyl)
|
# $1 Pterodactyl directory (pterodactyl)
|
||||||
|
|
||||||
cd $1/.blueprint;
|
cd "$1/.blueprint" || exit;
|
||||||
|
|
||||||
cat extensions/blueprint/private/debug/logs.txt
|
cat extensions/blueprint/private/debug/logs.txt
|
|
@ -3,7 +3,7 @@
|
||||||
# $1 Pterodactyl directory (pterodactyl)
|
# $1 Pterodactyl directory (pterodactyl)
|
||||||
# $2 Dev release (dev)
|
# $2 Dev release (dev)
|
||||||
|
|
||||||
cd $1/tools/tmp;
|
cd "$1/tools/tmp" || exit;
|
||||||
|
|
||||||
if [[ $2 != "dev" ]]; then
|
if [[ $2 != "dev" ]]; then
|
||||||
LOCATION=$(curl -s https://api.github.com/repos/teamblueprint/main/releases/latest \
|
LOCATION=$(curl -s https://api.github.com/repos/teamblueprint/main/releases/latest \
|
||||||
|
@ -11,15 +11,15 @@ if [[ $2 != "dev" ]]; then
|
||||||
| awk '{ print $2 }' \
|
| awk '{ print $2 }' \
|
||||||
| sed 's/,$//' \
|
| sed 's/,$//' \
|
||||||
| sed 's/"//g' ) \
|
| sed 's/"//g' ) \
|
||||||
; curl -L -o main.zip $LOCATION
|
; curl -L -o main.zip "$LOCATION"
|
||||||
|
|
||||||
unzip main.zip;
|
unzip main.zip;
|
||||||
rm main.zip;
|
rm main.zip;
|
||||||
mv * main;
|
mv ./* main;
|
||||||
else
|
else
|
||||||
git clone https://github.com/teamblueprint/main.git;
|
git clone https://github.com/teamblueprint/main.git;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
cp -R main/* $1/;
|
cp -R main/* "$1"/;
|
||||||
rm -R main;
|
rm -R main;
|
||||||
rm -R $1/.blueprint;
|
rm -R "$1"/.blueprint;
|
Loading…
Reference in a new issue