projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added 'squished on' phrase to file names.
[feisty_meow.git]
/
scripts
/
clam
/
badness_catcher.sh
diff --git
a/scripts/clam/badness_catcher.sh
b/scripts/clam/badness_catcher.sh
index 9872891b4bf13e96bb1a9743b1e47d5f4c191f78..f25746f16f2462a64ff66d4d044ce9c1f7c94bbb 100755
(executable)
--- a/
scripts/clam/badness_catcher.sh
+++ b/
scripts/clam/badness_catcher.sh
@@
-1,13
+1,24
@@
#!/bin/bash
# badness_catcher: runs the command line passed in and catches error conditions.
#!/bin/bash
# badness_catcher: runs the command line passed in and catches error conditions.
-#echo args are: $*
-eval $*
-ERR=$? # get exit status.
+
+if [ ! -z "$NOISY" ]; then
+ echo $*
+fi
+eval "$@"
+
+# get exit status.
+ERR=$?
+
if [ $ERR -eq 0 ]; then exit; fi # exit if no error.
if [ $ERR -eq 0 ]; then exit; fi # exit if no error.
-# print a complaint if there was an error.
+
+# print a complaint since there was an error.
echo
echo
-echo "Error in project \"$PROJECT\"!"
-echo " command=\"$*\"."
+echo "======================="
echo
echo
+echo "Error in project: \"$PROJECT\""
+echo " command was: $*"
+echo
+echo "======================="
source $CLAM_DIR/exit_make.sh
exit $ERR
source $CLAM_DIR/exit_make.sh
exit $ERR
+