diff --git a/system_setup/sync_client_software.sh b/system_setup/sync_client_software.sh index 296a9de..ccc051a 100755 --- a/system_setup/sync_client_software.sh +++ b/system_setup/sync_client_software.sh @@ -211,9 +211,9 @@ else echo "Running company install scripts in user- context." for DIR in $(ls -d ${CLIENT_SOFTWARE_CUST_DST}/*/ | sort); do DIR=${DIR%*/} # remove the trailing "/" - if [[ "$1." != "." ]] && [[ "${DIR}" != *"$1"* ]]; then + if [[ "$2." != "." ]] && [[ "${DIR}" != *"$2"* ]]; then #search for string in dir - echo "Skipping ${DIR} while not in search parameter ( $1 )." + echo "Skipping ${DIR} while not in search parameter ( $2 )." continue fi if [ -f "${DIR}/install.sh" ]; then