From ec2739e9ba83ef4deedf9312994a62190cf301cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20Carvalho?= Date: Wed, 27 May 2020 15:37:26 -0300 Subject: [PATCH] Use of "printf" command to avoid shell interpretation of dashes ("-") or percent sign ("%") --- scripts/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/network.sh b/scripts/network.sh index fdfda04..6ec84ad 100755 --- a/scripts/network.sh +++ b/scripts/network.sh @@ -9,7 +9,7 @@ get_ssid() Linux) SSID=$(iw dev | sed -nr 's/^\t\tssid (.*)/\1/p') if [ -n "$SSID" ]; then - echo -- "$SSID" + printf '%s' "$SSID" else echo 'Ethernet' fi