Use printf instead of echo

master
Hektor Misplon 2020-09-11 20:20:04 +02:00
parent c80dcfaa97
commit 7e59879095
1 changed files with 3 additions and 3 deletions

View File

@ -3,21 +3,21 @@
function start() { function start() {
adb start-server adb start-server
nohup gnirehtet autorun &> /dev/null & nohup gnirehtet autorun &> /dev/null &
echo "Started reverse tethering" printf "Started reverse tethering \n"
} }
function stop() { function stop() {
adb kill-server adb kill-server
gnirehtet stop gnirehtet stop
pkill gnirehtet pkill gnirehtet
echo "Stopped reverse tethering" printf "Stopped reverse tethering \n"
} }
case "$1" in case "$1" in
start) start ;; start) start ;;
stop) stop ;; stop) stop ;;
restart) stop; start ;; restart) stop; start ;;
*) echo "start | stop | restart" >&2 *) printf "start | stop | restart \n" >&2
exit 1 exit 1
;; ;;
esac esac