projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
37c6cdc
)
fixed comments
author
Chris Koeritz
<cak0l@virginia.edu>
Thu, 21 Jan 2021 19:47:57 +0000
(14:47 -0500)
committer
Chris Koeritz
<cak0l@virginia.edu>
Thu, 21 Jan 2021 19:47:57 +0000
(14:47 -0500)
scripts/testing/squelch_unless_error.sh
patch
|
blob
|
history
diff --git
a/scripts/testing/squelch_unless_error.sh
b/scripts/testing/squelch_unless_error.sh
index 696abd731776b74bbcc647555263c26aab6202de..c26fd94b8e5de82f8bd5a951bbd96a6750d888b5 100644
(file)
--- a/
scripts/testing/squelch_unless_error.sh
+++ b/
scripts/testing/squelch_unless_error.sh
@@
-1,11
+1,13
@@
#!/bin/bash
#!/bin/bash
-# redirects standard out and standard error output to temp files and runs all the parameters to this script as a command.
+# redirects standard out and standard error output to temp files and runs all
+# the parameters to this script as a command.
# if there is no error, then the files are just deleted.
# if there is no error, then the files are just deleted.
-# if there was an error, then the two output file are sent to standard out and standard error.
-# an additional error message is sent to standard error.
+# if there was an error, then the two output files are sent to standard out
+# and standard error, and an additional explanatory error message is sent to
+# standard error about the command that failed.
-#
echo "squelch args: $(printf -- "[%s] " "${@}")"
+#echo "squelch args: $(printf -- "[%s] " "${@}")"
newout="$(mktemp /tmp/squelch.out.XXXXXX)"
newerr="$(mktemp /tmp/squelch.err.XXXXXX)"
newout="$(mktemp /tmp/squelch.out.XXXXXX)"
newerr="$(mktemp /tmp/squelch.err.XXXXXX)"