would help to define a variable before trying to use it
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
# load in defaults from config
|
# load in defaults from config
|
||||||
scriptRoot=$(dirname "$0")
|
scriptRoot=$(dirname "$0")
|
||||||
configFile="$scriptRoot/config.sh"
|
configFile="$scriptRoot/config.sh"
|
||||||
|
hostname=$(hostname)
|
||||||
|
|
||||||
if [[ -f "$configFile" ]]; then
|
if [[ -f "$configFile" ]]; then
|
||||||
source "$configFile"
|
source "$configFile"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user