Skip to content

Commit

Permalink
handle errors better in install shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ajslater committed Jan 25, 2022
1 parent 04e0251 commit 7643fb1
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vendor/shellcheck/install-shellcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ if [ "$TARGETPLATFORM" = "linux/amd64" ]; then
fi

cd "$(dirname "$0")"
DEST=/usr/local/bin
DEST=/usr/local/bin/
if [ "$TARGETPLATFORM" = "linux/arm64" ]; then
ls *
cp arm64/shellcheck $DEST
PLATFORM=arm64
elif [ "$TARGETPLATFORM" = "linux/armv7" ]; then
cp armv7/shellcheck $DEST
PLATFORM=armv7
else
echo "Unhandled platform: $TARGETPLATFORM"
exit 1
fi
cp $PLATFORM/shellcheck $DEST

0 comments on commit 7643fb1

Please sign in to comment.