X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/65567c48842eff637270dd4b5783fa0ac4e19e85..ea368c741b7bf825472d19764ee1f513389b4087:/unitproc/bktemp-checkAppFileDir?ds=inline diff --git a/unitproc/bktemp-checkAppFileDir b/unitproc/bktemp-checkAppFileDir index e6e11fe..017cc3c 100644 --- a/unitproc/bktemp-checkAppFileDir +++ b/unitproc/bktemp-checkAppFileDir @@ -1,5 +1,9 @@ #!/bin/bash +# Desc: Template to check that apps, files, or dirs exist. +# Author: Steven Baltaktei Sandoval +# License: GPLv3+ + #==BEGIN Define script parameters== declare -Ag appRollCall # Associative array for storing app status declare -Ag fileRollCall # Associative array for storing file status @@ -19,7 +23,7 @@ checkapp() { #===Process Args=== for arg in "$@"; do #echo "DEBUG:processing arg:$arg" - if command -v $arg 1>/dev/null 2>&1; then # Check if arg is a valid command + if command -v "$arg" 1>/dev/null 2>&1; then # Check if arg is a valid command appRollCall[$arg]="true"; #echo "DEBUG:appRollCall[$arg]:"${appRollCall[$arg]} if ! [ "$returnState" = "false" ]; then returnState="true"; fi