diff --git a/common.sh b/common.sh index d36226f..129f67d 100644 --- a/common.sh +++ b/common.sh @@ -17,8 +17,8 @@ # Load Master.conf load_master_conf() { local script_dir - script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" - local master_conf="$script_dir/../Master.conf" + script_dir="$(cd "$(dirname "${BASH_SOURCE[1]}")" && pwd)" + local master_conf="$script_dir/Master.conf" if [[ -f "$master_conf" ]]; then source "$master_conf"