Scripts in local-init.sh fail due to ./script.sh being the
wrong path for those scripts.
Change-Id: I653547908c67a30caf53160d16e72fa2c4979504
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
# http://www.eclipse.org/legal/epl-v10.html
##############################################################################
-./system_type.sh
+INIT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
+"${INIT_DIR}/system_type.sh"
# shellcheck disable=SC1091
source /tmp/system_type.sh
-"./${SYSTEM_TYPE}.sh"
+"${INIT_DIR}/${SYSTEM_TYPE}.sh"