Skip to content
Snippets Groups Projects
Commit 53e4b906 authored by ezsh's avatar ezsh
Browse files

Replace echo -e with printf in scripts

echo -e is not POSIX compliant, and as we have to use #!/bin/sh shebang
line, echo might very well be unaware of "-e" argument. Therefore we
replace it with printf.
parent b186af30
No related branches found
No related tags found
1 merge request!5926Replace echo -e with printf in scripts
......@@ -8,6 +8,6 @@ rm -f "$3"
files=$(find "$1" -name "$2" -print)
files=$(echo "$files" | sort)
for f in $files; do
echo -e "\n/* ${f#$1} */\n" >> "$3"
printf "\n/* ${f#$1} */\n" >> "$3"
cat "$f" >> "$3"
done
......@@ -10,7 +10,7 @@ collectCSSForTwine() {
files=$(echo "$files" | sort)
echo "" > "$2"
for f in $files; do
echo -e "\n/* ${f} */\n" >> "$2"
printf "\n/* ${f} */\n" >> "$2"
cat "$f" >> "$2"
done
}
......
......@@ -10,7 +10,7 @@ collectJSForTwine() {
files=$(echo "$files" | sort)
echo "" > "$2"
for f in $files; do
echo -e "\n/* ${f} */\n" >> "$2"
printf "\n/* ${f} */\n" >> "$2"
sed -nf "$1"/devTools/stripComments.sed "$f" >> "$2"
done
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment