remove set -u and trap, add exec 2>&1 for full error visibility
This commit is contained in:
@@ -1,11 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
set -u
|
||||
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
|
||||
exec 2>&1
|
||||
|
||||
REPO="lendry/sso-mvk"
|
||||
GIT_HOST="git.lendry.ru"
|
||||
|
||||
Reference in New Issue
Block a user