summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-08-31 09:00:42 -0400
committerGitHub <noreply@github.com>2020-08-31 09:00:42 -0400
commit8ae0a356ffe07418334be51907f2886d64b1255b (patch)
tree7255646c7899cf32dc83d1ac87d0b39894638460 /netdata-installer.sh
parent0eb072c9a0e0b1e58a4db660a576032a1aa99044 (diff)
Use printf instead of echo for better POSIX compliance. (#9842)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index c40d03473e..eba7f1be9c 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -52,7 +52,7 @@ _cannot_use_tmpdir() {
return "${ret}"
fi
- if /bin/echo -e '#!/bin/sh\necho SUCCESS\n' > "${testfile}" ; then
+ if printf '#!/bin/sh\necho SUCCESS\n' > "${testfile}" ; then
if chmod +x "${testfile}" ; then
if [ "$("${testfile}")" = "SUCCESS" ] ; then
ret=1