aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-18 12:47:00 +0000
committerMinteck <contact@minteck.org>2022-02-18 12:47:00 +0000
commit80537126f67a83ba9b9557fd8a5424c8320c8e93 (patch)
treee4348e90d9f323a8972dd7d88151cc94addcd55f
parent8b95f0b44f6b6ba9e40a9babbaa87fe8ec4415c8 (diff)
downloadelectrode-80537126f67a83ba9b9557fd8a5424c8320c8e93.tar.gz
electrode-80537126f67a83ba9b9557fd8a5424c8320c8e93.tar.bz2
electrode-80537126f67a83ba9b9557fd8a5424c8320c8e93.zip
Update updates.sh
-rwxr-xr-xshared/updates.sh20
1 files 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*