Skip to content

Commit

Permalink
Revise
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdragon committed Dec 17, 2024
1 parent 2995d0e commit e3a1966
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,28 +173,23 @@ install_ssh() {
x86_64)
arch="amd64"
;;
*)
arch="$arch"
;;
esac

# URL to download the SSH binary
url="https://github.com/ysdragon/ssh/releases/latest/download/ssh-$arch"

# Download the SSH binary
wget -q -O /usr/local/bin/ssh "$url"
if [ $? -ne 0 ]; then
wget -q -O /usr/local/bin/ssh "$url" || {
log "ERROR" "Failed to download SSH." "$RED"
return 1
fi
}

# Make the binary executable
chmod +x /usr/local/bin/ssh
if [ $? -ne 0 ]; then
chmod +x /usr/local/bin/ssh || {
log "ERROR" "Failed to make ssh executable." "$RED"
return 1
fi
}

log "INFO" "SSH installed successfully." "$GREEN"
}

Expand Down

0 comments on commit e3a1966

Please sign in to comment.