File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ export ROOT_PATH="${HOME}/Documents"
1313export GIT_LOCAL_PATH=" ${ROOT_PATH} /vscode-shell-snippets"
1414export GIT_REPOSITORY=" https://github.com/DeepInThought/vscode-shell-snippets.git"
1515export GIT_RAW_TEST=" https://raw.githubusercontent.com/DeepInThought/vscode-shell-snippets/master/README.md"
16+ export ERROR_CODE=
1617
1718__username=" $( whoami) "
1819__dir=" $( cd " $( dirname " ${HOME} " /" ${__username} " ) " && pwd) "
@@ -30,7 +31,7 @@ handle_exit_code() {
3031 exit ${ERROR_CODE}
3132 fi
3233 if [ " ${ERROR_CODE} " = " 1" ]; then
33- printf -- ' \033[31m [ERROR CODE %s]: ERROR_CODE %s primary to echo call failed .\033[0m\n' ${ERROR_CODE} ${ERROR_CODE}
34+ printf -- ' \033[31m [ERROR CODE %s]: ERROR_CODE %s is related to Git repositories .\033[0m\n' ${ERROR_CODE} ${ERROR_CODE}
3435 printf -- ' \033[31m [EXIT] with status code %s.\033[0m\n' " ${ERROR_CODE} "
3536 exit ${ERROR_CODE}
3637 fi
You can’t perform that action at this time.
0 commit comments