summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernández <hahj87@gmail.com>2012-02-16 11:44:44 -0600
committerJoshua Ismael Haase Hernández <hahj87@gmail.com>2012-02-16 11:44:44 -0600
commitb0f34edcb6a7ef1a6a96423b12994943b90af5ed (patch)
treeb8bbb270e7a7b98c374432853d5b827b807ee92f
parentb27597d40ab29bc880c8607858343f27e1dc8bfc (diff)
toru-utils: trap shows name of $0
-rwxr-xr-xfullpkg1
-rwxr-xr-xtoru-utils8
2 files changed, 5 insertions, 4 deletions
diff --git a/fullpkg b/fullpkg
index bccd816..9a03b82 100755
--- a/fullpkg
+++ b/fullpkg
@@ -15,6 +15,7 @@ usage() {
echo " -h : this message."
echo ""
echo "Wrapper for \`fullpkg-find' and \`fullpkg-build'"
+ echo ""
exit 1
}
diff --git a/toru-utils b/toru-utils
index bb0aef4..7e6d62d 100755
--- a/toru-utils
+++ b/toru-utils
@@ -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