diff options
-rwxr-xr-x | fullpkg | 1 | ||||
-rwxr-xr-x | toru-utils | 8 | ||||
-rwxr-xr-x | update-cleansystem | 2 |
3 files changed, 6 insertions, 5 deletions
@@ -15,6 +15,7 @@ usage() { echo " -h : this message." echo "" echo "Wrapper for \`fullpkg-find' and \`fullpkg-build'" + echo "" exit 1 } @@ -7,7 +7,7 @@ source /etc/libretools.conf if [ ! -w "$TORUPATH" ]; then error "Toru's path isn't writable. Please check $TORUPATH" - exit 1 + exit 1 fi LASTSYNCFILE=${TORUPATH}/lastsync @@ -81,6 +81,6 @@ trap_exit() { # Trap signals from makepkg set -E -trap 'trap_exit "(prfullpkg:${level}) TERM signal caught. Exiting..."' TERM HUP QUIT -trap 'trap_exit "(prfullpkg:${level}) Aborted by user! Exiting..."' INT -trap 'trap_exit "(prfullpkg:${level}) An unknown error has occurred. Exiting..."' ERR +trap 'trap_exit "($(basename $0):${level}) TERM signal caught. Exiting..."' TERM HUP QUIT +trap 'trap_exit "($(basename $0):${level}) Aborted by user! Exiting..."' INT +trap 'trap_exit "($(basename $0):${level}) An unknown error has occurred. Exiting..."' ERR diff --git a/update-cleansystem b/update-cleansystem index dd3ff6c..97c2922 100755 --- a/update-cleansystem +++ b/update-cleansystem @@ -15,7 +15,7 @@ tmpdir=/tmp/cleansystem.${RANDOM} mkdir -p ${tmpdir}/var/lib/pacman # We sync first because updating info gets printed to stdout too -pacman -r ${tmpdir} --config /etc/pacman.conf -Sy +pacman -r ${tmpdir} --config /etc/pacman.conf -Sy 2>/dev/null pacman -r ${tmpdir} \ --config /etc/pacman.conf \ -Sp --print-format "%n" \ |