aboutsummaryrefslogtreecommitdiff
path: root/utils/common.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/common.sh')
-rwxr-xr-xutils/common.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/common.sh b/utils/common.sh
index 67087484a..85abe8720 100755
--- a/utils/common.sh
+++ b/utils/common.sh
@@ -1,6 +1,6 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
-printf 'Running script: %s\n' "$(basename ${0})" >&2
+printf 'Running script: %s\n' "$(basename "${0}")" >&2
function check_http_response()
{
@@ -21,7 +21,7 @@ function is_file_empty()
exit 1
fi
- if [ `cat "${file}" | wc -c` -eq 0 ]; then
+ if [ "$(< "${file}" wc -c)" -eq 0 ]; then
printf '%s error: %s\n' "${0}" "file ${file} empty!" >&2
exit 1
fi