Skip to content

Instantly share code, notes, and snippets.

@beatak
Created February 2, 2024 18:01
Show Gist options
  • Save beatak/a01583e960bd76cdcb98df6c3bc3c063 to your computer and use it in GitHub Desktop.
Save beatak/a01583e960bd76cdcb98df6c3bc3c063 to your computer and use it in GitHub Desktop.
#!/bin/sh
set -e
if [ -f /usr/local/bin/mo.sh ]; then
echo "mo.sh already installed"
else
apt-get update
apt-get install -yqq --no-install-recommends ca-certificates curl
curl -sSL https://raw.githubusercontent.com/tests-always-included/mo/master/mo -o mo.sh
chmod a+x mo.sh
mv mo.sh /usr/local/bin/mo.sh
echo "Now mo.sh is at /usr/local/bin"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment