diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-06-22 23:48:43 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-06-22 23:48:43 -0400 |
commit | cc02d07dedbc737855ec0711dd52d4654c9a7404 (patch) | |
tree | 3b194f11b878dc4d7ecbb86e8e463f94f63a0e12 /genkernel | |
parent | genkernel: simplify/robustify --config parsing (diff) | |
download | genkernel-cc02d07dedbc737855ec0711dd52d4654c9a7404.tar.gz genkernel-cc02d07dedbc737855ec0711dd52d4654c9a7404.tar.bz2 genkernel-cc02d07dedbc737855ec0711dd52d4654c9a7404.zip |
clean up extended echo usage
Switch to printf where appropriate, and simplify other locations where
the -e option was pointless.
Diffstat (limited to 'genkernel')
-rwxr-xr-x | genkernel | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -192,7 +192,7 @@ fi # print_warning 1 "${BOLD}WARNING${NORMAL}: Another Genkernel instance is running under" # print_warning 1 " process ID${EX} " 0 # GENPIDS=`ps -C genkernel --no-headers -o pid` -# echo -n "${GENPIDS}" | sed -e "s/$$//; s/ /, /g" +# printf "%s" "${GENPIDS}" | sed -e "s/$$//; s/ /, /g" # echo 'halting...' # echo # print_warning 1 'Running multiple genkernels on the same source tree will cause data loss!' @@ -270,7 +270,7 @@ then trap "CALLBACK_ESCAPE=1" TERM KILL INT QUIT ABRT while [[ "${CALLBACK_ESCAPE}" = '0' && ${CALLBACK_COUNT} -lt 5 ]] do - sleep 1; echo -n '.'; + sleep 1; printf '.'; let CALLBACK_COUNT=${CALLBACK_COUNT}+1 done |