Advertisement
illwieckz

curl|sh example

Jan 24th, 2021
1,232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. set -e
  2. temp_zip=`mktemp`
  3. temp_exe=`mktemp`
  4. command -v curl >/dev/null && alias download='curl -s -L'
  5. command -v wget >/dev/null && alias download='wget -q -O-'
  6. download 'https://unvanquished.net/download/linux' > "$temp_zip"
  7. unzip -qq -p "$temp_zip" > "$temp_exe"
  8. /lib64/ld-linux-x86-64.so.2 "$temp_exe"
  9. rm "$temp_zip"
  10. rm "$temp_exe"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement