summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqt-replace-stream-tqt3.cmake
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-09-14 02:49:15 +0200
committerSlávek Banko <[email protected]>2020-09-14 02:57:15 +0200
commitb5fb7ec59011fb1a75ae84c718ed7e7c19e33dd2 (patch)
tree348e95ee286e055da3850457eaff030fbb849ffe /qtinterface/tqt-replace-stream-tqt3.cmake
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 <[email protected]>
Diffstat (limited to 'qtinterface/tqt-replace-stream-tqt3.cmake')
-rwxr-xr-xqtinterface/tqt-replace-stream-tqt3.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/qtinterface/tqt-replace-stream-tqt3.cmake b/qtinterface/tqt-replace-stream-tqt3.cmake
index c30e562..14f7308 100755
--- a/qtinterface/tqt-replace-stream-tqt3.cmake
+++ b/qtinterface/tqt-replace-stream-tqt3.cmake
@@ -1,8 +1,8 @@
#!/bin/bash
QT_VERSION=@QT_VERSION@
-if [[ $1 == "" ]]; then
+if [[ "$1" == "" ]]; then
echo "Usage: tqt-replace-stream <filename>"
else
- cat $1 | sed 's/^Q_OBJECT/TQ_OBJECT/g' | sed 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g'
+ cat "$1" | sed 's/^Q_OBJECT/TQ_OBJECT/g' | sed 's/\([^T]\)Q_OBJECT/\1TQ_OBJECT/g'
fi