fix path escaping
This commit is contained in:
parent
79619c63fb
commit
96d663c2b2
5
mige.sh
5
mige.sh
@ -29,9 +29,10 @@ read_options() {
|
||||
|
||||
process_file () {
|
||||
local timep=$(date +%s%N)
|
||||
local sourcediresc=${SOURCEDIR//\//\\/}
|
||||
|
||||
mkdir -p $( dirname "$1" | sed "s/$SOURCEDIR\/$DIR_CONTENT/$SOURCEDIR\/$DIR_DIST/" )
|
||||
local file_output=$( echo "$1" | sed "s/$SOURCEDIR\/$DIR_CONTENT/$SOURCEDIR\/$DIR_DIST/" )
|
||||
mkdir -p $( dirname "$1" | sed "s/$sourcediresc\/$DIR_CONTENT/$sourcediresc\/$DIR_DIST/" )
|
||||
local file_output=$( echo "$1" | sed "s/$sourcediresc\/$DIR_CONTENT/$sourcediresc\/$DIR_DIST/" )
|
||||
cat "$SOURCEDIR/$TEMPLATE_HEADER" "$1" "$SOURCEDIR/$TEMPLATE_FOOTER" > $file_output
|
||||
while read -r variable; do
|
||||
if [[ $variable =~ ^([0-9]+)=(.+)$ ]]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user