diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2013-09-03 09:42:35 +0200 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2013-09-03 13:37:04 +0200 |
commit | 4691f01fd45b333ca2b80212320400d07d861432 (patch) | |
tree | 790d5b88bb567d0a5419fe3b93ced74b19f1d0f6 /runltp | |
parent | 4b3007a8e16522b26cfb8233530736554a53ae9c (diff) |
runltp: rework echo -n to printf POSIX-compliant
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Diffstat (limited to 'runltp')
-rwxr-xr-x | runltp | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -537,18 +537,16 @@ main() { [ -z "$RHOST" ] && \ { - echo \ - "INFO: Enter RHOST = 'name of the remote host machine'" - echo -n "-> " + printf "INFO: Enter RHOST = 'name of the remote host machine'" + printf "\n-> " read RHOST } [ -z "$PASSWD" ] && \ { - echo " " - echo \ - "INFO: Enter PASSWD = 'root passwd of the remote host machine'" - echo -n "-> " + printf "\nINFO: " + printf "Enter PASSWD = 'root passwd of the remote host machine'" + printf "\n-> " read PASSWD } export RHOST=$RHOST @@ -733,15 +731,15 @@ main() #$PAN_COMMAND #Duplicated code here, because otherwise if we fail, only "PAN_COMMAND" gets output ## Display the Output/Log/Failed/HTML file names here - echo -e "LOG File: \c" + printf "LOG File: " echo $LOGFILE | cut -b4- if [ "$OUTPUTFILE" ]; then - echo -e "OUTPUT File: \c" + printf "OUTPUT File: " echo $OUTPUTFILE | cut -b4- fi - echo -e "FAILED COMMAND File: \c" + printf "FAILED COMMAND File: " echo $FAILCMDFILE | cut -b4- if [ "$HTMLFILE" ]; then |