diff --git a/scripts/diagnostics.sh b/scripts/diagnostics.sh index 9e9c788..117f057 100755 --- a/scripts/diagnostics.sh +++ b/scripts/diagnostics.sh @@ -1,6 +1,13 @@ #!/bin/bash -source lib/InterfaceUtils.sh +if [ -d "lib" ] + then source lib/InterfaceUtils.sh +elif [ -d "../lib" ] + then source ../lib/InterfaceUtils.sh +else + echo "YOU MUST EXECUTE THIS SCRIPT FROM FLUXION'S ROOT!"; exit 1 +fi + if [ ! "$1" ] then echo "Usage ./scripts/diagnostics "; exit 1