mirror of
https://github.com/crate-ci/typos.git
synced 2025-02-22 13:00:56 -05:00
refactor(action): Isolate unique parts
This commit is contained in:
parent
212923e4ff
commit
c5137fd6aa
1 changed files with 2 additions and 3 deletions
|
@ -19,7 +19,6 @@ if [[ -z $(ls ${TARGET} 2>/dev/null) ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
if [[ ! -x ${COMMAND} ]]; then
|
||||
VERSION=1.29.9
|
||||
if [[ "$(uname -m)" == "arm64" || "$(uname -m)" == "aarch64" ]]; then
|
||||
|
@ -38,8 +37,8 @@ if [[ ! -x ${COMMAND} ]]; then
|
|||
TARGET_FILE="${ARCH}-unknown-linux-musl"
|
||||
FILE_EXT="tar.gz"
|
||||
fi
|
||||
FILE_NAME="typos-v${VERSION}-${TARGET_FILE}.${FILE_EXT}"
|
||||
log "Downloading 'typos' v${VERSION}"
|
||||
FILE_NAME="${CMD_NAME}-v${VERSION}-${TARGET_FILE}.${FILE_EXT}"
|
||||
log "Downloading '${CMD_NAME}' v${VERSION}"
|
||||
wget --progress=dot:mega "https://github.com/crate-ci/typos/releases/download/v${VERSION}/${FILE_NAME}"
|
||||
mkdir -p ${_INSTALL_DIR}
|
||||
if [[ "$FILE_EXT" == "zip" ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue