Skip to content

Commit

Permalink
Merge pull request #4 from klundberg/fix-shellcheck-error
Browse files Browse the repository at this point in the history
Fix SC2155 failure
  • Loading branch information
klundberg authored Sep 21, 2024
2 parents a9872b8 + 50d3485 commit 206f6d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ esac
DOWNLOAD_URL="https://github.com/realm/SwiftLint/releases/download/$ASDF_INSTALL_VERSION/$ARCHIVE_NAME.zip"

# make a temporary download directory with a cleanup hook
readonly TMP_DOWNLOAD_DIR="$(mktemp -d -t "asdf_swiftlint_XXXXXX")"
TMP_DOWNLOAD_DIR="$(mktemp -d -t "asdf_swiftlint_XXXXXX")"
readonly TMP_DOWNLOAD_DIR
trap 'rm -rf "${TMP_DOWNLOAD_DIR?}"' EXIT

SWIFTLINT_DOWNLOAD_PATH="$TMP_DOWNLOAD_DIR/swiftlint.zip"
Expand Down

0 comments on commit 206f6d7

Please sign in to comment.