"buildscript" Fix handling of slashes in templates (eg. URLS)

This commit is contained in:
Marc René Schädler 2013-11-15 11:53:12 +01:00
parent e2cdbae554
commit ab85a8af57
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ if [ "$1" != "selectbsp" -a "$1" != "selectcommunity" -a "$1" != "buildall" ]; t
echo "Working with $(/bin/ls -l selected_bsp | awk '{ print $11 }') and" \
"$(/bin/ls -l selected_community | awk '{ print $11 }')"
. selected_bsp
tpl_translate=$(awk -F= 'BEGIN{printf("sed")} /^.+$/{printf(" -es/\\${%s}/%s/g",$1,$2)}' selected_community)
tpl_translate=$(awk -F= 'BEGIN{printf("sed")} /^.+$/{gsub("/", "\\/", $0); printf(" -es/\\${%s}/%s/g",$1,$2)}' selected_community)
echo
fi