summaryrefslogtreecommitdiff
path: root/src/abslibre-tools/libreaddiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 21:50:58 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-20 22:56:14 -0400
commitd958a33c1f0e11b770481a9188cbf75cc3bfd0a5 (patch)
treeb5ae47096365863eb26a77a89af0e36b48b5ca03 /src/abslibre-tools/libreaddiff
parent2d1ae58285ade402260bf5d5a4dbf42aba027fc5 (diff)
Quote unquoted strings that should probably be quoted.
These were found with the help of shellcheck. Nothing more complicated than wrapping a variable in double quotes has been done.
Diffstat (limited to 'src/abslibre-tools/libreaddiff')
-rwxr-xr-xsrc/abslibre-tools/libreaddiff3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/abslibre-tools/libreaddiff b/src/abslibre-tools/libreaddiff
index afd1c98..17e808b 100755
--- a/src/abslibre-tools/libreaddiff
+++ b/src/abslibre-tools/libreaddiff
@@ -3,6 +3,7 @@
# Copyright (C) 2011-2012 Michał Masłowski <mtjm@mtjm.eu>
# Copyright (C) 2012 Daniel Molina (lluvia)
+# Copyright (C) 2017 Luke Shumaker <lukeshu@sbcglobal.net>
#
# License: GNU GPLv3+
#
@@ -61,7 +62,7 @@ try:
line = next(it)
if line == "%ARCH%\n":
arch = next(it)
- if arch == "'"$arch"'\n" or "'$repo'" not in '"$archrepos"':
+ if arch == "'"$arch"'\n" or "'"$repo"'" not in '"$archrepos"':
print("%s-%s" % (name.strip(), version.strip()))
if line == "%NAME%\n":
name = next(it)