mirror of
https://github.com/AuxXxilium/arc.git
synced 2024-11-24 04:19:53 +07:00
arc/update: remove "dev" from update versions
Signed-off-by: AuxXxilium <info@auxxxilium.tech>
This commit is contained in:
parent
f14b7e3308
commit
103c99d291
@ -1938,7 +1938,7 @@ function decryptMenu() {
|
|||||||
CONFIGSVERSION="$(cat "${MODEL_CONFIG_PATH}/VERSION")"
|
CONFIGSVERSION="$(cat "${MODEL_CONFIG_PATH}/VERSION")"
|
||||||
cp -f "${S_FILE}" "${S_FILE}.bak"
|
cp -f "${S_FILE}" "${S_FILE}.bak"
|
||||||
dialog --backtitle "$(backtitle)" --colors --title "Arc Decrypt" \
|
dialog --backtitle "$(backtitle)" --colors --title "Arc Decrypt" \
|
||||||
--inputbox "Enter Decryption Key for ${CONFIGSVERSION}\nKey is available in my Discord." 8 50 2>"${TMP_PATH}/resp"
|
--inputbox "Enter Decryption Key for ${CONFIGSVERSION} !\nKey is available in my Discord:\nhttps://discord.auxxxilium.tech" 9 50 2>"${TMP_PATH}/resp"
|
||||||
[ $? -ne 0 ] && return
|
[ $? -ne 0 ] && return
|
||||||
ARCKEY=$(cat "${TMP_PATH}/resp")
|
ARCKEY=$(cat "${TMP_PATH}/resp")
|
||||||
if openssl enc -in "${S_FILE_ENC}" -out "${S_FILE_ARC}" -d -aes-256-cbc -k "${ARCKEY}" 2>/dev/null; then
|
if openssl enc -in "${S_FILE_ENC}" -out "${S_FILE_ARC}" -d -aes-256-cbc -k "${ARCKEY}" 2>/dev/null; then
|
||||||
|
@ -10,9 +10,9 @@ function upgradeLoader () {
|
|||||||
idx=0
|
idx=0
|
||||||
while [ ${idx} -le 5 ]; do # Loop 5 times, if successful, break
|
while [ ${idx} -le 5 ]; do # Loop 5 times, if successful, break
|
||||||
if [ "${ARCNIC}" == "auto" ]; then
|
if [ "${ARCNIC}" == "auto" ]; then
|
||||||
local TAG="$(curl -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | sort -rV | head -1)"
|
local TAG="$(curl -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | grep -v "dev" | sort -rV | head -1)"
|
||||||
else
|
else
|
||||||
local TAG="$(curl --interface ${ARCNIC} -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | sort -rV | head -1)"
|
local TAG="$(curl --interface ${ARCNIC} -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | grep -v "dev" | sort -rV | head -1)"
|
||||||
fi
|
fi
|
||||||
if [ -n "${TAG}" ]; then
|
if [ -n "${TAG}" ]; then
|
||||||
break
|
break
|
||||||
@ -107,9 +107,9 @@ function updateLoader() {
|
|||||||
idx=0
|
idx=0
|
||||||
while [ ${idx} -le 5 ]; do # Loop 5 times, if successful, break
|
while [ ${idx} -le 5 ]; do # Loop 5 times, if successful, break
|
||||||
if [ "${ARCNIC}" == "auto" ]; then
|
if [ "${ARCNIC}" == "auto" ]; then
|
||||||
local TAG="$(curl -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | sort -rV | head -1)"
|
local TAG="$(curl -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | grep -v "dev" | sort -rV | head -1)"
|
||||||
else
|
else
|
||||||
local TAG="$(curl --interface ${ARCNIC} -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | sort -rV | head -1)"
|
local TAG="$(curl --interface ${ARCNIC} -m 10 -skL "https://api.github.com/repos/AuxXxilium/arc/releases" | jq -r ".[].tag_name" | grep -v "dev" | sort -rV | head -1)"
|
||||||
fi
|
fi
|
||||||
if [ -n "${TAG}" ]; then
|
if [ -n "${TAG}" ]; then
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user