mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-24 16:28:23 -05:00
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>
This commit is contained in:
parent
79bbafd78c
commit
2b7f46f1c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user