summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt-replace-stream
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-09-14 02:49:15 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-09-14 02:57:15 +0200
commitb5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2 (patch)
tree348e95ee286e055da3850457eaff030fbb849ffe /qtinterface/tqt-replace-stream
parent78d7836b23b4687b2809f9d4338850cc4476a875 (diff)
downloadtqtinterface-b5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2.tar.gz
tqtinterface-b5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2.zip
Add quotes for the file name used as a parameter in tqt-replace scripts.
This resolves bug 3158. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'qtinterface/tqt-replace-stream')
-rwxr-xr-xqtinterface/tqt-replace-stream4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtinterface/tqt-replace-stream b/qtinterface/tqt-replace-stream
index ff0d08d..ccf1ab0 100755
--- a/qtinterface/tqt-replace-stream
+++ b/qtinterface/tqt-replace-stream
@@ -1,10 +1,10 @@
#!/bin/bash
QT_VER=X
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
- cat $1 | \
+ cat "$1" | \
sed 's/^TQ\([^T_]\)/Q\1/g' | \
sed 's/\([^_]\)TQ\([^T_]\)/\1Q\2/g' | \
sed 's/TQT\([^_]\)/QT\1/g' | \