summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/revdep-rebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/revdep-rebuild b/bin/revdep-rebuild
index ce9e61c..6726c7e 100755
--- a/bin/revdep-rebuild
+++ b/bin/revdep-rebuild
@@ -241,7 +241,17 @@ clean_var() {
die() {
local status=$1
shift
- eerror "$@"
+
+ # Check if eerror has been loaded.
+ # Its loaded _after_ opt parsing but not before due to RC_NOCOLOR.
+ type eerror &> /dev/null
+
+ if [[ $? -eq 0 ]];
+ then
+ eerror "$@"
+ else
+ echo " * ${@}" >> /dev/stderr
+ fi
exit $status
}
##