summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYeliz Taneroğlu <yeliztaneroglu@gmail.com>2017-05-12 18:34:12 +0300
committerChris Sherlock <chris.sherlock79@gmail.com>2017-05-20 11:28:47 +0200
commite20f6464cc4047876ce5e6d47510e8038c513234 (patch)
tree36898a9d2f0824dece763737335a766502ecc47c
parent6c80b3730ebe5a95aa685e5f02c285edeb21d4a5 (diff)
tdf#105204: ShellCheck nitpicks for find-unused-data.sh
Double quote to prevent globbing and word splitting. Change-Id: I09faac27ca5c63a85b9b8cbd4f09821587bf4759 Reviewed-on: https://gerrit.libreoffice.org/37545 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
-rwxr-xr-xsw/qa/extras/find-unused-data.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/find-unused-data.sh b/sw/qa/extras/find-unused-data.sh
index 9f4496871875..17b5678bece4 100755
--- a/sw/qa/extras/find-unused-data.sh
+++ b/sw/qa/extras/find-unused-data.sh
@@ -2,8 +2,8 @@
for i in */data/*
do
- file=$(basename $i)
- if ! git grep -q $file; then
+ file=$(basename "$i")
+ if ! git grep -q "$file"; then
echo "WARNING: $i is not used, write a testcase for it!"
fi
done