From 117def4f72aaad2af0d0cc1602fff175d77135d2 Mon Sep 17 00:00:00 2001 From: Scott Brenner Date: Sun, 11 Oct 2020 21:17:54 -0700 Subject: [PATCH] fix(ci): Fix shellcheck failures in entrypoint.sh (#13) --- entrypoint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 8386534..929f45c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,9 +1,10 @@ #!/bin/sh -l +# shellcheck disable=SC2039 -git clone --quiet https://github.com/$REPO &> /dev/null +git clone --quiet https://github.com/"$REPO" -if [ "$REPO" == "ScottBrenner/generate-changelog-action" ]; then - cd generate-changelog-action +if [ "$REPO" = "ScottBrenner/generate-changelog-action" ]; then + cd generate-changelog-action || exit fi if [ "$1" ] && [ "$1" != "package.json" ]; then @@ -17,6 +18,6 @@ changelog="${changelog//'%'/'%25'}" changelog="${changelog//$'\n'/'%0A'}" changelog="${changelog//$'\r'/'%0D'}" -echo $changelog +echo "$changelog" echo "::set-output name=changelog::$changelog"