Skip to content

Instantly share code, notes, and snippets.

@0b1kn00b
Last active October 10, 2024 14:27
Show Gist options
  • Save 0b1kn00b/813939958dead2f4bcb71bedc3dccb89 to your computer and use it in GitHub Desktop.
Save 0b1kn00b/813939958dead2f4bcb71bedc3dccb89 to your computer and use it in GitHub Desktop.
if ! which bb &> /dev/null; then
#echo "babashka not installed"
if which sudo &> /dev/null; then
#echo "sudo exists, using it"
sudo bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
else
#echo "assuming that user is administrator"
bash < <(curl -s https://raw.githubusercontent.com/babashka/babashka/master/install)
fi
# else
#echo "babashka already installed"
fi
@0b1kn00b
Copy link
Author

paste the following into .envrc to use

source_url https://gist.githubusercontent.com/0b1kn00b/813939958dead2f4bcb71bedc3dccb89/raw/0ce94dd15c392875590e8defa157e98e527ad8f0/use_babashka "sha256-SxoAuo330cNGUs4pPjrFdhDAESRJJCYwyM+UiRXPYV4="

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment