remove set -u and trap, add exec 2>&1 for full error visibility

This commit is contained in:
Дмитрий Мамедов
2026-06-10 17:44:41 +03:00
parent 8275d21f26
commit e608545e1a

View File

@@ -1,11 +1,5 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -u exec 2>&1
error_handler() {
local line=$1 code=$2
echo -e "\033[0;31m✘\033[0m ERROR on line $line: exit code $code"
exit 1
}
trap 'error_handler $LINENO $?' ERR
REPO="lendry/sso-mvk" REPO="lendry/sso-mvk"
GIT_HOST="git.lendry.ru" GIT_HOST="git.lendry.ru"