Adding checks for installation prerequisites
[kuberef.git] / deploy.sh
index 631f580..78e2978 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -16,12 +16,19 @@ set -o nounset
 # Please refer to README for detailed information.
 
 # Get path information
-DIRECTORY=$(readlink -f $0)
-CURRENTPATH=$(dirname $DIRECTORY)
+DIRECTORY=$(readlink -f "$0")
+CURRENTPATH=$(dirname "$DIRECTORY")
 
 # Source env variables & functions
-source $CURRENTPATH/deploy.env
-source $CURRENTPATH/functions.sh
+# shellcheck source=./deploy.env
+source "$CURRENTPATH/deploy.env"
+# shellcheck source=./functions.sh
+source "$CURRENTPATH/functions.sh"
+
+# ---------------------------------------------------------------------
+# check installation and runtime prerequisites
+# ---------------------------------------------------------------------
+check_prerequisites
 
 # Clean up leftovers
 clean_up