From 135989d4f7c0c58085c909a1c56fcb14ff007245 Mon Sep 17 00:00:00 2001 From: Yegor Yefremov Date: Wed, 4 Oct 2023 10:21:58 +0200 Subject: [PATCH] bin/freight-cache: don't quote the FIND_L variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FIND_L variable defines the -L parameter to the find command. Hence it should not be quoted. Otherwise, find command produces the following error: find: ‘’: No such file or directory --- bin/freight-cache | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/freight-cache b/bin/freight-cache index 340e5bf..b8e7093 100755 --- a/bin/freight-cache +++ b/bin/freight-cache @@ -118,7 +118,8 @@ for DIR in $DIRS; do # whatever it wants. . "$LIB/$MANAGER.sh" SORT="$(sort -V <"/dev/null" 2>"/dev/null" && echo "sort -V" || echo "sort")" - find "$FIND_L" "$DIR" -type "f" -printf "%P\n" 2>"/dev/null" | + # shellcheck disable=SC2086 + find $FIND_L "$DIR" -type "f" -printf "%P\n" 2>"/dev/null" | eval "$SORT" | eval "${MANAGER}_cache" "$DIST"