fix: installer
This commit is contained in:
1 parent
ace2ab54c6
commit
032d1fac56
2 files changed
+7
-1
No files matched your search
+1
-1
@@ -2456,6 +2456,6 @@ main() {
|
||||
fi
|
||||
}
|
||||
|
||||
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
||||
if [ "${BASH_SOURCE[0]:-$0}" = "$0" ]; then
|
||||
main "$@"
|
||||
fi
|
||||
@@ -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"* ]]
|
||||
}
|
||||
Reference in new issue
Block a user