script/check_conf.sh
#!bin/bash
################################
# Purpose: To validate the non-null nature of the Home variables
# Date: 19-Sept-2017
# Invocation: This script is invoked from load_conf.sh
# Dependencies: home.conf
################################
CONFIG_FILE=./script/home.conf
if [ -f $CONFIG_FILE ];
then
# shellcheck disable=SC1090
. "$CONFIG_FILE"
fi
# Check if $TS_HOME exists
if [ ! -d "$TS_HOME" ]; then
exit 1
fi
# Check if $ASDF_HOME exists
if [ ! -d "$ASDF_HOME" ]; then
exit 1
fi