From 09c589553e74c5cddf12ca0d2d0837e94c3b9346 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 24 Jan 2018 16:43:12 +0100 Subject: [PATCH] Fixed network.get-wlan-key to have ABSOLUTE path for 'sourcing' configuration --- network/get-wlan-key | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/network/get-wlan-key b/network/get-wlan-key index 8840cd5..d78e8b0 100755 --- a/network/get-wlan-key +++ b/network/get-wlan-key @@ -1,13 +1,16 @@ #!/bin/bash +CLONE_CONF=`dirname $(realpath $0)`; +CLONE_CONF=`dirname $CLONE_CONF`; +CLONE_CONF="$CLONE_CONF/clone/clone.conf"; + echo "1. Checking argument 'ssid'" [ $# -lt 1 ] && echo " > failure" && exit; echo " > done"; echo "2. Fetching SALT and PEPPER from conf"; -source ../clone/clone.conf; -echo " > done"; +source $CLONE_CONF && echo " > done" || echo " > error" || exit 1; echo "3. Processing key";