fix: installer

This commit is contained in:
samosvalishe
2026-09-07 03:12:46 +03:00
parent ace2ab54c6
commit 032d1fac56
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -2456,6 +2456,6 @@ main() {
fi
}
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
if [ "${BASH_SOURCE[0]:-$0}" = "$0" ]; then
main "$@"
fi
+6
View File
@@ -433,3 +433,9 @@ EOF
"
[ "$status" -ne 0 ]
}
@test "запуск через пайп (curl | bash) корректно обрабатывает параметры без ошибки unbound variable" {
run bash -c "cat '$SCRIPT' | bash -s -- -h"
[ "$status" -eq 0 ]
[[ "$output" == *"Free Turn Proxy & AmneziaWG"* ]]
}