diff --git a/configBuilder.sh b/configBuilder.sh index 1db065f..2b95541 100755 --- a/configBuilder.sh +++ b/configBuilder.sh @@ -511,8 +511,10 @@ echo "" echo "Creating sanitized config for hybrid build..." echo "" destPath=./ConfigNoSecrets -#cp -rf `realpath ${PWD}`/. $destPath >/dev/null 2>>/dev/null -rsync -a . ./testCPNS --exclude ${destPath} +destPathName=ConfigNoSecrets +# check for rsync +command -v rsync >/dev/null 2>&1 || { echo >&2 "ERROR: rsync is required, but doesn't appear to be installed. Aborting..."; exit 1; } +rsync -a . ${destPath} --exclude ${destPathName} mkdir -p ./${destPath}/SECRETS # move secrets