From 14de4ad8ef9f9d2cdba33fcfc86fdef4cea489e9 Mon Sep 17 00:00:00 2001 From: Lordify Date: Fri, 20 Dec 2024 10:56:17 +0000 Subject: [PATCH] Update common/functions.sh --- common/functions.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/functions.sh b/common/functions.sh index 883e450..746c695 100644 --- a/common/functions.sh +++ b/common/functions.sh @@ -249,8 +249,14 @@ if [ -f $INFO ]; then fi ### Unzip curl -unzip $MODPATH/bin/curl.zip -unzip $MODPATH/bin/curl64.zip +if [[ "$ARCH" = "arm" ]]; then + unzip $MODPATH/bin/curl.zip -d $MODPATH/bin +elif [[ "$ARCH" = "arm64" ]]; then + unzip $MODPATH/bin/curl64.zip -d $MODPATH/bin +else + echo "Unsupported CPU Architecture" + exit +fi chmod 0755 $MODPATH/bin/$ARCH/curl ### Install