Skip to content

Instantly share code, notes, and snippets.

@Maxstupo
Created March 23, 2017 07:54
Show Gist options
  • Save Maxstupo/0a64c4bd2bc647c23a96c289fc512b9b to your computer and use it in GitHub Desktop.
Save Maxstupo/0a64c4bd2bc647c23a96c289fc512b9b to your computer and use it in GitHub Desktop.
Run bash script from url
#!/bin/bash
curl -s $1 | sudo bash /dev/stdin
# Usage: bash run-from.sh <url-to-bash-script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment