sync_client_software: Fixed parameter to skip software

This commit is contained in:
Daniel unbrot Pätzold
2026-05-08 13:36:41 +02:00
parent a250476b44
commit 793bbc045a
+2 -2
View File
@@ -211,9 +211,9 @@ else
echo "Running company install scripts in user- context." echo "Running company install scripts in user- context."
for DIR in $(ls -d ${CLIENT_SOFTWARE_CUST_DST}/*/ | sort); do for DIR in $(ls -d ${CLIENT_SOFTWARE_CUST_DST}/*/ | sort); do
DIR=${DIR%*/} # remove the trailing "/" DIR=${DIR%*/} # remove the trailing "/"
if [[ "$1." != "." ]] && [[ "${DIR}" != *"$1"* ]]; then if [[ "$2." != "." ]] && [[ "${DIR}" != *"$2"* ]]; then
#search for string in dir #search for string in dir
echo "Skipping ${DIR} while not in search parameter ( $1 )." echo "Skipping ${DIR} while not in search parameter ( $2 )."
continue continue
fi fi
if [ -f "${DIR}/install.sh" ]; then if [ -f "${DIR}/install.sh" ]; then