summaryrefslogtreecommitdiff
path: root/updateabslibre
diff options
context:
space:
mode:
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