aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorAndré Erdmann <dywi@mailerd.de>2013-09-04 14:44:48 +0200
committerAndré Erdmann <dywi@mailerd.de>2013-09-04 14:44:48 +0200
commit11b43b0d1f2cbf099b221724a9d5c04f41f37180 (patch)
treebb2a9f80694e947b11161878551243d4b748eeff /files
parentfiles/shlib/git: minor comment (diff)
downloadR_overlay-11b43b0d1f2cbf099b221724a9d5c04f41f37180.tar.gz
R_overlay-11b43b0d1f2cbf099b221724a9d5c04f41f37180.tar.bz2
R_overlay-11b43b0d1f2cbf099b221724a9d5c04f41f37180.zip
files/shlib/functions: add EX_GIT_* error codes
Diffstat (limited to 'files')
-rw-r--r--files/shlib/functions.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/files/shlib/functions.sh b/files/shlib/functions.sh
index d27fd8a..14dab08 100644
--- a/files/shlib/functions.sh
+++ b/files/shlib/functions.sh
@@ -57,6 +57,11 @@
# EX_ERR
# EX_ARG_ERR
#
+# EX_GIT_ERR
+# EX_GIT_ADD_ERR
+# EX_GIT_COMMIT_ERR
+# EX_GIT_PUSH_ERR
+#
# SCRIPT_FILENAME
# SCRIPT_NAME
#
@@ -101,6 +106,11 @@ readonly DEVNULL
readonly EX_ERR=2
readonly EX_ARG_ERR=5
+readonly EX_GIT_ERR=30
+readonly EX_GIT_ADD_ERR=35
+readonly EX_GIT_COMMIT_ERR=36
+readonly EX_GIT_PUSH_ERR=37
+
readonly SCRIPT_FILENAME="${0##*/}"
readonly SCRIPT_NAME="${SCRIPT_FILENAME%.*}"
@@ -186,7 +196,7 @@ run_command_logged() {
# void autodie ( *cmdv ), raises die()
#
-# Executes a commands. Dies on non-zero return code.
+# Executes a command. Dies on non-zero return code.
#
autodie() {
local rc=0