From f16ca11b61eac4be7d245e5e11de34c8283cf453 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 25 Dec 2014 17:19:12 +0000 Subject: [PATCH] Use braces --- install-freedombone.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-freedombone.sh b/install-freedombone.sh index c410a4f4..a6623f9c 100755 --- a/install-freedombone.sh +++ b/install-freedombone.sh @@ -7161,7 +7161,7 @@ function enable_wifi_hotspot { # Add a password if [ ! $WIFI_PASSWORD ]; then TEMP_WIFI_PASSWORD=$(openssl rand -base64 8) - WIFI_PASSWORD=$($TEMP_WIFI_PASSWORD:0:8} + WIFI_PASSWORD=${$TEMP_WIFI_PASSWORD:0:8} fi sed -i 's|#DAEMON_CONF=.*|DAEMON_CONF="/etc/hostapd/hostapd.conf"|g' /etc/default/hostapd @@ -7270,7 +7270,7 @@ function enable_wifi { # Add a password if [ ! $WIFI_PASSWORD ]; then TEMP_WIFI_PASSWORD=$(openssl rand -base64 8) - WIFI_PASSWORD=$($TEMP_WIFI_PASSWORD:0:8} + WIFI_PASSWORD=${$TEMP_WIFI_PASSWORD:0:8} fi # Add a password