convert_apptemplate2vm.sh: use sed with 'g' flag to replace all occurances of %VMNAME%

This commit is contained in:
Joanna Rutkowska 2010-10-04 11:08:35 +02:00
parent e4ae32d196
commit ea9fa93593

View File

@ -6,7 +6,7 @@ VMDIR=$4
DST=$DSTDIR/$VMNAME-$(basename $SRC) DST=$DSTDIR/$VMNAME-$(basename $SRC)
sed -e "s/%VMNAME%/$VMNAME/" \ sed -e "s/%VMNAME%/$VMNAME/g" \
-e "s %VMDIR% $VMDIR " \ -e "s %VMDIR% $VMDIR " \
<$SRC >$DST <$SRC >$DST