Skip to content

Commit

Permalink
Ignore word-splitting issue
Browse files Browse the repository at this point in the history
We want word-splitting here so we pass all cache directories to find as
separate arguments. There should be no spaces here.
  • Loading branch information
pbrisbin committed Jul 2, 2016
1 parent e658106 commit 6426cbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions downgrade
Expand Up @@ -77,6 +77,7 @@ search_packages() {
/.* href="\('"$1"'.*\(any\|'"$ARCH"'\)\.pkg\.tar\.xz\)".*/!d;
s||'"$index"'\1|g; s|+| |g; s|%|\\x|' | xargs -0 printf "%b"

# shellcheck disable=SC2046
((NOCACHE)) || \
find $( sed '/^#\?CacheDir *= *\(.*\)$/!d;s//\1/' "$PACMAN_CONF" ) \
-name "$1-[0-9R]*.pkg.tar.[gx]z"
Expand Down

0 comments on commit 6426cbf

Please sign in to comment.