Advertisement
Guest User

Untitled

a guest
Jul 6th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. base=~/Git
  3.  
  4. cd "$base"
  5. for d in $(find $base/*_Build -name "Dockerfile"); do
  6. echo $d
  7. cd "$(echo "$d" | sed 's/Dockerfile//g')"
  8. git co master
  9. sed -i "s/# Force autobuild.*/# Force autobuild $(date +%s)/" $d
  10. git add Dockerfile
  11. git commit -m "Force autobuild"
  12. git push
  13. cd "$base"
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement