Исправь источник файлов при curl-установке
This commit is contained in:
@@ -29,4 +29,19 @@ status_text="$(bash "$ROOT/bin/vpn-lemanapro.sh" --status)"
|
||||
printf '%s\n' "$status_text" | grep -q 'app='
|
||||
printf '%s\n' "$status_text" | grep -q 'autostart='
|
||||
|
||||
fake_pwd="$TMP_DIR/fake-pwd"
|
||||
mkdir -p "$fake_pwd/bin"
|
||||
printf 'stale local cli\n' > "$fake_pwd/bin/vpn-lemanapro.sh"
|
||||
|
||||
piped_output="$(
|
||||
cd "$fake_pwd" &&
|
||||
LEMANA_VPN_RAW_BASE_URL="file://$ROOT" sh -s -- --dry-run --non-interactive --minimal --without-app < "$ROOT/install.sh"
|
||||
)"
|
||||
|
||||
printf '%s\n' "$piped_output" | grep -q "curl -fsSL file://$ROOT/bin/vpn-lemanapro.sh"
|
||||
if printf '%s\n' "$piped_output" | grep -q "$fake_pwd/bin/vpn-lemanapro.sh"; then
|
||||
echo "piped install used stale PWD/bin/vpn-lemanapro.sh" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf 'smoke ok\n'
|
||||
|
||||
Reference in New Issue
Block a user