Skip to content

Instantly share code, notes, and snippets.

@chadmayfield
Created October 30, 2020 17:25
Show Gist options
  • Save chadmayfield/ba94ca5b2cb0acc2e94d0971107f458c to your computer and use it in GitHub Desktop.
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.
#!/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