Skip to content

Commit

Permalink
fix: update output filename (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljtill authored Feb 16, 2025
1 parent 893bd8a commit c8bf117
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/atlas/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ download_binary() {

log "INFO" "Downloading MongoDB Atlas CLI from $URL"

if ! curl -sLf --fail -o ./mongodb-atlas-cli.tar.gz "$URL"; then
if ! curl -sLf --fail -o ./mongodb.tar.gz "$URL"; then
log "ERROR" "Failed to download MongoDB Atlas CLI!"
exit 1
fi
Expand All @@ -83,7 +83,7 @@ download_binary() {

install_binary() {
log "INFO" "Installing MongoDB Atlas CLI..."
tar -zxof ./mongodb-atlas-cli.tar.gz
tar -zxof ./mongodb.tar.gz
install -m 0755 ./mongodb-atlas-cli_${VERSION}_linux_${ARCH}/bin/atlas /usr/local/bin/atlas
log "INFO" "MongoDB Atlas CLI installed successfully to /usr/bin/atlas"
}
Expand Down
4 changes: 2 additions & 2 deletions src/spin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ download_binary() {
URL="https://github.com/fermyon/spin/releases/download/v${VERSION}/spin-v${VERSION}-linux-${ARCH}.tar.gz"
log "INFO" "Downloading Spin from $URL"

if ! curl -sLf --fail -o ./spin-linux-${ARCH}.tar.gz "$URL"; then
if ! curl -sLf --fail -o ./spin.tar.gz "$URL"; then
log "ERROR" "Failed to download Spin!"
exit 1
fi
Expand All @@ -79,7 +79,7 @@ download_binary() {

install_binary() {
log "INFO" "Installing Spin..."
tar -zxof ./spin-linux-${ARCH}.tar.gz
tar -zxof ./spin.tar.gz
install -m 0755 ./spin /usr/local/bin/spin
log "INFO" "Spin installed successfully to /usr/local/bin/spin"
}
Expand Down
4 changes: 2 additions & 2 deletions src/task/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ download_binary() {
URL="https://github.com/go-task/task/releases/download/v${VERSION}/task_linux_${ARCH}.tar.gz"
log "INFO" "Downloading Go Task from $URL"

if ! curl -sLf --fail -o ./task_linux_${ARCH}.tar.gz "$URL"; then
if ! curl -sLf --fail -o ./task.tar.gz "$URL"; then
log "ERROR" "Failed to download Go Task!"
exit 1
fi
Expand All @@ -79,7 +79,7 @@ download_binary() {

install_binary() {
log "INFO" "Installing Go Task..."
tar -zxof ./task_linux_${ARCH}.tar.gz
tar -zxof ./task.tar.gz
install -m 0755 ./task /usr/local/bin/task
log "INFO" "Go Task installed successfully to /usr/local/bin/task"
}
Expand Down
6 changes: 3 additions & 3 deletions src/zig/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ download_binary() {
URL="https://ziglang.org/download/${VERSION}/zig-linux-${ARCH}-${VERSION}.tar.xz"
log "INFO" "Downloading Zig from $URL"

if ! curl -sLf --fail -o ./zig-linux-${ARCH}-${VERSION}.tar.xz "$URL"; then
if ! curl -sLf --fail -o ./zig.tar.xz "$URL"; then
log "ERROR" "Failed to download Zig!"
exit 1
fi
Expand All @@ -79,8 +79,8 @@ download_binary() {

install_binary() {
log "INFO" "Installing Zig..."
xz -d ./zig-linux-${ARCH}-${VERSION}.tar.xz
tar -xof ./zig-linux-${ARCH}-${VERSION}.tar
xz -d ./zig.tar.xz
tar -xof ./zig.tar
install -m 0755 ./zig-linux-${ARCH}-${VERSION}/zig /usr/local/bin/zig
log "INFO" "Zig installed successfully to /usr/local/bin/zig"
}
Expand Down

0 comments on commit c8bf117

Please sign in to comment.