sync_client_software: Fixed parameter to skip software
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user