summaryrefslogtreecommitdiff
path: root/updateabslibre
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-03-25 07:09:23 -0700
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-03-25 07:09:23 -0700
commit691baba22e7fb1fe47005558ca92e540566fe383 (patch)
tree8fc6367afbe472c51664ff2edf0310715b8712dd /updateabslibre
parent5f47cf2a8f096f284bb1a9278fa676960ae65847 (diff)
Added libremessages and format in scripts
Diffstat (limited to 'updateabslibre')
-rwxr-xr-xupdateabslibre10
1 files changed, 6 insertions, 4 deletions
diff --git a/updateabslibre b/updateabslibre
index 74c42f1..76f964a 100755
--- a/updateabslibre
+++ b/updateabslibre
@@ -26,12 +26,14 @@ custom_config=$XDG_CONFIG_HOME/libretools/libretools.conf
[[ -e $custom_config ]] && source $custom_config
# Send every output to /dev/null
-stdnull=">/dev/null 2>&1"
-echo "Updating ABSLibre..."
+msg "Updating ABSLibre..."
pushd ${WORKDIR}/abslibre ${stdnull}
- git pull ${ABSLIBREGIT} || exit 1
-popd ${stdnull}
+ git pull ${ABSLIBREGIT} || {
+ error "Failed pull"
+ exit 1
+}
+stdnull "popd"
exit 0