From 80537126f67a83ba9b9557fd8a5424c8320c8e93 Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 18 Feb 2022 12:47:00 +0000 Subject: Update updates.sh --- shared/updates.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/shared/updates.sh b/shared/updates.sh index 29b26ad..7ad2ecc 100755 --- a/shared/updates.sh +++ b/shared/updates.sh @@ -9,22 +9,22 @@ if [[ $code -eq 0 ]]; then else echo "updater: Failed with code $code" echo "updater: Cleaning up..." - rm -dr trunk.zip* + rm -dr neutron-trunk.zip* exit $code fi echo "updater: Extracting..." mkdir -p ./public -rm -dr ./Neutron-trunk -unzip trunk.zip +rm -dr ./neutron-trunk +unzip neutron-trunk.zip code=$? if [[ $code -eq 0 || $code -eq 2 ]]; then echo "updater: Success" else echo "updater: Failed with code $code" echo "updater: Cleaning up..." - rm -dr trunk.zip* + rm -dr neutron-trunk.zip* exit $code fi @@ -44,25 +44,25 @@ rm -dr ./public/index.php echo "updater: Installing..." -cp -r Neutron-trunk/* ./public/ +cp -r neutron-trunk/* ./public/ code=$? if [[ $code -eq 0 ]]; then echo "updater: Success" else echo "updater: Failed with code $code" echo "updater: Cleaning up..." - rm -dr trunk.zip* + rm -dr neutron-trunk.zip* exit $code fi -rm -dr Neutron-trunk/ +rm -dr neutron-trunk/ code=$? if [[ $code -eq 0 ]]; then echo "updater: Success" else echo "updater: Failed with code $code" echo "updater: Cleaning up..." - rm -dr trunk.zip* + rm -dr neutron-trunk.zip* exit $code fi @@ -73,9 +73,9 @@ if [[ $code -eq 0 ]]; then else echo "updater: Failed with code $code" echo "updater: Cleaning up..." - rm -dr trunk.zip* + rm -dr neutron-trunk.zip* exit $code fi echo "updater: Cleaning up..." -rm -dr trunk.zip* +rm -dr neutron-trunk.zip* -- cgit