Skip to content

Commit

Permalink
codacy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
bsherman committed Nov 14, 2024
1 parent 916b912 commit d9e0ecb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ucore/install-ucore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ curl --fail --retry 5 --retry-delay 5 --retry-all-errors -sSL -o /tmp/mfs-api.js
MFS_TGZ_URL=$(cat /tmp/mfs-api.json | \

Check notice on line 21 in ucore/install-ucore.sh

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

ucore/install-ucore.sh#L21

Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.
jq -r --arg arch_filter "linux_amd64" \
'.assets | sort_by(.created_at) | reverse | .[] | select(.name|test($arch_filter)) | select (.name|test("tar.gz$")) | .browser_download_url')
curl -sSL -o /tmp/mergerfs.tar.gz ${MFS_TGZ_URL}
curl -sSL -o /tmp/mergerfs.tar.gz "${MFS_TGZ_URL}"
tar -zxvf /tmp/mergerfs.tar.gz -C /usr --strip-components=2

# tweak os-release
Expand Down

0 comments on commit d9e0ecb

Please sign in to comment.