Fixed network.get-wlan-key to have ABSOLUTE path for 'sourcing' configuration

This commit is contained in:
xdrm-brackets 2018-01-24 16:43:12 +01:00
parent a7acce6eba
commit 09c589553e
1 changed files with 5 additions and 2 deletions

View File

@ -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";