attach_webzip.sh 365 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. if [ -z "$1" ]
  3. then
  4. set -- "brawler"
  5. fi
  6. # Use this simple script to attach the web.zip to Rufs's executable.
  7. for f in "$@"
  8. do
  9. if grep -Fxq "####WEBZIP####" $f
  10. then
  11. echo "File web.zip is already appended to $f"
  12. else
  13. echo "Appending web.zip to $f ..."
  14. echo >> $f
  15. echo "####WEBZIP####" >> $f
  16. cat web.zip >> $f
  17. fi
  18. done