The script failed to sync to the correct directory due to the fact that bash interprets single quote and double quote differently when dealing with variable expansion.

This commit is contained in:
Stephen Smoogen 2020-08-12 16:26:28 -04:00
parent a595ab2f59
commit d248786aec

View file

@ -21,9 +21,9 @@ cd $RHEL7SYNCDIR
## Sync out RHEL-7 for appropriate arches
for A in ${ARCHES}; do
if [[ ${A} == 'x86_64' ]]; then
DNF_ARCH='-p ${A} -a ${A} -a noarch -a i686'
DNF_ARCH="-p ${A} -a ${A} -a noarch -a i686"
else
DNF_ARCH='-p ${A} -a ${A} -a noarch'
DNF_ARCH="-p ${A} -a ${A} -a noarch"
fi
rm -rf ${SYNCDIR}/${A}
CONF=yum-batcave-rhel7-${A}.conf