Skip to content

Commit

Permalink
Removed extra printed \n (#8326)
Browse files Browse the repository at this point in the history
When running the installation script, a lot of `\n` got printed before the return status `[OK]` or `[ERROR]`.
  • Loading branch information
Jiab77 committed Mar 6, 2020
1 parent 9b2ee02 commit d31707e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netdata-installer.sh
Expand Up @@ -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}"
}
Expand Down Expand Up @@ -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')"
Expand Down

0 comments on commit d31707e

Please sign in to comment.