We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f0530 commit a51d1ceCopy full SHA for a51d1ce
files/common.sh
@@ -7,16 +7,16 @@ fail() {
7
# Print a stderr: entry if there were anything printed to stderr
8
if [[ -s $_tmp ]]; then
9
# Hack to try and output valid json by replacing newlines with spaces.
10
- echo "{ \"status\": \"error\", \"message\": \"$1\", \"stderr\": \"$(tr '\n' ' ' <$_tmp)\" }"
+ $(/usr/bin/which echo) "{ \"status\": \"error\", \"message\": \"$1\", \"stderr\": \"$(tr '\n' ' ' <$_tmp)\" }"
11
else
12
- echo "{ \"status\": \"error\", \"message\": \"$1\" }"
+ $(/usr/bin/which echo) "{ \"status\": \"error\", \"message\": \"$1\" }"
13
fi
14
15
exit ${2:-1}
16
}
17
18
success() {
19
- echo "$1"
+ $(/usr/bin/which echo) "$1"
20
exit 0
21
22
0 commit comments