diff --git a/bin/freight-cache b/bin/freight-cache index f1d78a6..340e5bf 100755 --- a/bin/freight-cache +++ b/bin/freight-cache @@ -69,6 +69,7 @@ while [ "$#" -gt 0 ]; do done LIB="$(cd "$(dirname "$(dirname "$0")")/lib/freight" && pwd)" +# shellcheck source=/dev/null . "$LIB/conf.sh" # If `GPG_PASSPHRASE_FILE` is set the specified file should exist and be @@ -117,7 +118,7 @@ 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" | + find "$FIND_L" "$DIR" -type "f" -printf "%P\n" 2>"/dev/null" | eval "$SORT" | eval "${MANAGER}_cache" "$DIST"