1
0
mirror of synced 2025-01-31 20:41:42 +03:00

Update tests

This commit is contained in:
hwdsl2 2021-08-22 11:53:03 -05:00
parent 68159da3de
commit dcb3a7ab83
2 changed files with 4 additions and 4 deletions

View File

@ -420,7 +420,7 @@ jobs:
fi fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 3.32 4.1 4.2 4.3 4.4; do for ver in 3.32 4.1 4.2 4.3 4.4 4.5; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS "$shc" vpnup.sh <<ANSWERS
@ -822,7 +822,7 @@ jobs:
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9') os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
for ver in 3.32 4.1 4.2 4.3 4.4; do for ver in 3.32 4.1 4.2 4.3 4.4 4.5; do
[ "$ver" = "3.32" ] && [ "$os_ver" = "11" ] && continue [ "$ver" = "3.32" ] && [ "$os_ver" = "11" ] && continue
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh

View File

@ -449,7 +449,7 @@ jobs:
fi fi
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
for ver in 3.32 4.1 4.2 4.3 4.4; do for ver in 3.32 4.1 4.2 4.3 4.4 4.5; do
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh
"$shc" vpnup.sh <<ANSWERS "$shc" vpnup.sh <<ANSWERS
@ -851,7 +851,7 @@ jobs:
sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh sed -i '/swan_ver_latest=/s/^/#/' vpnup.sh
os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9') os_ver=$(sed 's/\..*//' /etc/debian_version | tr -dc 'A-Za-z0-9')
for ver in 3.32 4.1 4.2 4.3 4.4; do for ver in 3.32 4.1 4.2 4.3 4.4 4.5; do
[ "$ver" = "3.32" ] && [ "$os_ver" = "11" ] && continue [ "$ver" = "3.32" ] && [ "$os_ver" = "11" ] && continue
[ "$ver" = "4.3" ] && shc=sh || shc=bash [ "$ver" = "4.3" ] && shc=sh || shc=bash
sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh sed -i "s/^SWAN_VER=.*/SWAN_VER=$ver/" vpnup.sh