Skip to content

Commit 4c80ef4

Browse files
author
Gregor Gruener
committed
double quote the KSPATH var, otherwise it is not running
1 parent 3b02ab9 commit 4c80ef4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

clone_create_ks_distributions.sh

+3-5
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ then
5555
echo_debug "Got distro hint arg $2, looking for appropriate ks tree"
5656
OLDSUFFIX=$(echo $2 | sed "s/\./-u/")
5757
NEWSUFFIX=$(echo $2 | sed "s/\./\\\./")
58-
KSPATH=$( find /var/satellite/rhn/kickstart/ -name \
59-
ks-rhel-${ARCH}-server-${RHELVERSION}* | grep -e "${OLDSUFFIX}" -e "${NEWSUFFIX}")
58+
KSPATH=$(find /var/satellite/rhn/kickstart/ -name \
59+
"ks-rhel-${ARCH}-server-${RHELVERSION}*" | grep -e "${OLDSUFFIX}" -e "${NEWSUFFIX}")
6060
if [ -n "${KSPATH}" ]
6161
then
6262
echo "Found kickstart tree path for release $2 : ${KSPATH}"
@@ -67,11 +67,9 @@ then
6767
else
6868
echo "No release version passed, trying to find latest kickstart tree path"
6969
KSPATH=$(find /var/satellite/rhn/kickstart/ -name \
70-
ks-rhel-${ARCH}-server-${RHELVERSION}-${RHELVERSION}* | sort -n | tail -n1)
70+
"ks-rhel-${ARCH}-server-${RHELVERSION}-${RHELVERSION}*" | sort -n | tail -n1)
7171
fi
7272
echo_debug "spacecmd -- distribution_create -n ${CLONECH} -p ${KSPATH} \
7373
-b ${CLONECH} -t rhel_${RHELVERSION}"
7474
spacecmd -- distribution_create -n ${CLONECH} -p ${KSPATH} -b ${CLONECH}\
7575
-t rhel_${RHELVERSION}
76-
77-

0 commit comments

Comments
 (0)