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
|
#!/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"
|
||||||
|
|||||||
Reference in New Issue
Block a user