Skip to content

Commit cd0ca5c

Browse files
committed
[Git Commit]: at 2018-09-29 15:37:54-05:00
1 parent 286ee29 commit cd0ca5c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

git-build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export ROOT_PATH="${HOME}/Documents"
1313
export GIT_LOCAL_PATH="${ROOT_PATH}/vscode-shell-snippets"
1414
export GIT_REPOSITORY="https://github.com/DeepInThought/vscode-shell-snippets.git"
1515
export 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

0 commit comments

Comments
 (0)