aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/examples
diff options
context:
space:
mode:
authorDavide Caratti <davide.caratti@gmail.com>2018-09-10 11:00:36 (GMT)
committerJouni Malinen <j@w1.fi>2018-11-22 13:53:30 (GMT)
commit2b7f46f1c7ee9f8e21ca90efc7f2a77c8c36c26f (patch)
tree075666d56671290a96b49c422a6223255c468408 /wpa_supplicant/examples
parent79bbafd78ccf1a9e4835a85ca252eadf20a17e94 (diff)
downloadhostap-2b7f46f1c7ee9f8e21ca90efc7f2a77c8c36c26f.zip
hostap-2b7f46f1c7ee9f8e21ca90efc7f2a77c8c36c26f.tar.gz
hostap-2b7f46f1c7ee9f8e21ca90efc7f2a77c8c36c26f.tar.bz2
examples: Fix shellcheck warnings in wps-ap-cli
use 'printf' instead of 'echo -n', to suppress the following warning: In POSIX sh, echo flags are undefined. [SC2039] Signed-off-by: Davide Caratti <davide.caratti@gmail.com>
Diffstat (limited to 'wpa_supplicant/examples')
-rwxr-xr-xwpa_supplicant/examples/wps-ap-cli6
1 files changed, 3 insertions, 3 deletions
diff --git a/wpa_supplicant/examples/wps-ap-cli b/wpa_supplicant/examples/wps-ap-cli
index cc2cff2..15d913e 100755
--- a/wpa_supplicant/examples/wps-ap-cli
+++ b/wpa_supplicant/examples/wps-ap-cli
@@ -14,12 +14,12 @@ pbc()
enter_pin()
{
echo "Enter a PIN from a station to be enrolled to the network."
- echo -n "Enrollee PIN: "
+ printf "Enrollee PIN: "
read pin
cpin=`$CLI wps_check_pin "$pin" | tail -1`
if [ "$cpin" = "FAIL-CHECKSUM" ]; then
echo "Checksum digit is not valid"
- echo -n "Do you want to use this PIN (y/n)? "
+ printf "Do you want to use this PIN (y/n)? "
read resp
case "$resp" in
y*)
@@ -52,7 +52,7 @@ main_menu()
echo "3: Show current configuration"
echo "0: Exit wps-ap-cli"
- echo -n "Command: "
+ printf "Command: "
read cmd
case "$cmd" in