Advertisement
tohands

Update FTB via bash

Apr 26th, 2013
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. # Simple auto update scripts by tohands
  2. # Required: bash, wget, sed and unzip.
  3. # How to use it
  4. # 'update.sh Mindcrack'
  5. # will update the Mindcrack pack
  6. # 'update.sh Ultimate'
  7. # will update the Ultimate Pack
  8. # Every update come officially from http://feed-the-beast.com/download.php.
  9.  
  10. #!/bin/bash
  11. rm -rf $1.zip
  12. wget `wget -qO- http://feed-the-beast.com/download.php | cat | grep -o '<a .*href=.*>' | sed -e 's/<a /\n<a /g' | sed -e 's/<a .*href=['"'"'"]//' -e 's/["'"'"'].*$//' -e '/^$/ d' | grep $1` -O $1.zip
  13. unzip -o $1.zip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement