Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ main() {
log_info "Detected OS: $OS"
log_info "Detected architecture: $ARCH"

# Determine file extension and archive name
# Determine file extension
if [ "$OS" = "windows" ]; then
EXT="zip"
BINARY_NAME="git-mirror.exe"
Expand All @@ -94,6 +94,9 @@ main() {

log_info "Latest version: $VERSION"

# Construct archive name after VERSION is known
ARCHIVE_NAME="${BINARY_NAME%.*}-${OS}-${ARCH}-${VERSION}.${EXT}"

# Download URL
DOWNLOAD_URL="https://github.com/${REPO}/releases/download/${VERSION}/${ARCHIVE_NAME}"
CHECKSUM_URL="${DOWNLOAD_URL}.sha256"
Expand Down