Skip to content

Commit

Permalink
Merge pull request #130 from yegorich/shell-fixes
Browse files Browse the repository at this point in the history
Resolve shellcheck issues
  • Loading branch information
yegorich committed Jun 30, 2023
2 parents 4e940f5 + d705c44 commit f562ea3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/freight-cache
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand Down

0 comments on commit f562ea3

Please sign in to comment.