convert_apptemplate2vm.sh: use sed with 'g' flag to replace all occurances of %VMNAME%
This commit is contained in:
parent
e4ae32d196
commit
ea9fa93593
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user