summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Domonkos <mdomonko@redhat.com>2021-06-21 10:05:10 +0200
committerPanu Matilainen <pmatilai@redhat.com>2021-08-20 11:44:09 +0300
commitcc515e87f5345be9237a61dbeaef621ec746a392 (patch)
tree39590a486cddc70bb706728a93fbe094623fe5eb
parent28417564690b0fe30f6eb844ee79355f5356815b (diff)
downloadrpm-cc515e87f5345be9237a61dbeaef621ec746a392.tar.gz
Add quoting to literal curly brackets
These curly brackets are already treated as literals by the shell, so let's make that explicit for clarity, and silence a ShellCheck warning at the same time. More info: https://github.com/koalaman/shellcheck/wiki/SC1083 Found by ShellCheck. (cherry picked from commit c7d7c5acd0c14d0450016887cba1d86483086794)
-rwxr-xr-xscripts/check-rpaths-worker4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/check-rpaths-worker b/scripts/check-rpaths-worker
index 14c1f8af3..dbacc91b0 100755
--- a/scripts/check-rpaths-worker
+++ b/scripts/check-rpaths-worker
@@ -121,13 +121,13 @@ function check_rpath() {
(/usr/libexec/*)
badness=0;;
- (\$ORIGIN|\${ORIGINX}|\$ORIGIN/*|\${ORIGINX}/*)
+ (\$ORIGIN|\$\{ORIGINX\}|\$ORIGIN/*|\$\{ORIGINX\}/*)
test $allow_ORIGIN -eq 0 && badness=8 || {
badness=0
new_allow_ORIGIN=1
}
;;
- (/*\$PLATFORM*|/*\${PLATFORM}*|/*\$LIB*|/*\${LIB}*)
+ (/*\$PLATFORM*|/*\$\{PLATFORM\}*|/*\$LIB*|/*\$\{LIB\}*)
badness=0;;
(/lib|/usr/lib|/usr/X11R6/lib)