diff options
author | Jonathan Barda <jonathan.barda@gmail.com> | 2020-03-06 04:31:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-06 13:31:43 +1000 |
commit | d31707e6a400f2dfa4dca93b16e562e2c3f4a3db (patch) | |
tree | 3191227918d1f204b1c6275fa51f01b03d6fbcbb /netdata-installer.sh | |
parent | 9b2ee02824c4ecec7ee3dab4ed171d8f52949a90 (diff) |
Removed extra printed `\n` (#8326)
When running the installation script, a lot of `\n` got printed before the return status `[OK]` or `[ERROR]`.
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 92873f9482..92116ff518 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -11,7 +11,7 @@ uniquepath() { [ -n "${path}" ] && path="${path}:" path="${path}${REPLY}" fi - done < <(echo "${PATH}" | tr ":" "\\n") + done < <(echo "${PATH}" | tr ":" "\n") [ -n "${path}" ] && [[ ${PATH} =~ /bin ]] && [[ ${PATH} =~ /sbin ]] && export PATH="${path}" } @@ -100,16 +100,16 @@ ACLK="${ACLK}" # keep a log of this command # shellcheck disable=SC2129 -printf "\\n# " >> netdata-installer.log +printf "\n# " >> netdata-installer.log date >> netdata-installer.log printf 'CFLAGS="%s" ' "${CFLAGS}" >> netdata-installer.log printf 'LDFLAGS="%s" ' "${LDFLAGS}" >> netdata-installer.log printf "%q " "${PROGRAM}" "${@}" >> netdata-installer.log -printf "\\n" >> netdata-installer.log +printf "\n" >> netdata-installer.log REINSTALL_OPTIONS="$( printf "%s" "${*}" - printf "\\n" + printf "\n" )" # remove options that shown not be inherited by netdata-updater.sh REINSTALL_OPTIONS="$(echo "${REINSTALL_OPTIONS}" | sed 's/--dont-wait//g' | sed 's/--dont-start-it//g')" |