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