diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-09-14 02:49:15 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-09-14 02:57:15 +0200 |
commit | b5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2 (patch) | |
tree | 348e95ee286e055da3850457eaff030fbb849ffe /qtinterface/tqt-replace-stream | |
parent | 78d7836b23b4687b2809f9d4338850cc4476a875 (diff) | |
download | tqtinterface-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-x | qtinterface/tqt-replace-stream | 4 |
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' | \ |