Created
October 30, 2020 17:25
-
-
Save chadmayfield/ba94ca5b2cb0acc2e94d0971107f458c to your computer and use it in GitHub Desktop.
Download and compile the latest sshpass since homebrew will not allow it's use anymore in Catalina.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$(xcode-select -p 1>/dev/null; echo $?)" -ne 0 ]; then xcode-select --install; fi && \ | |
curl -O -L -J https://sourceforge.net/projects/sshpass/files/latest/download && \ | |
ARCHIVE="$(find . -name sshpass*.tar.gz -ctime -30s)" && \ | |
tar xvzf "$ARCHIVE" && \ | |
cd "${ARCHIVE%%.*}" && \ | |
echo "./configure" && \ | |
echo "make" && \ | |
echo "sudo make install" && \ | |
cd - && \ | |
sshpass -V |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment