mllm

in_case_of_fire

Jan 31st, 2017
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. # fastaddcommit.sh
  2. git add *
  3. git commit -m "fire"
  4.  
  5. # fastpush.sh
  6. git push -u origin master
  7.  
  8. # runfirebackup.sh
  9. # run this script in case of fire
  10. #!/bin/bash
  11.  
  12. cd /home/user/Projects/Active/
  13. ls -l | grep drwxrwxr-x | awk ' /d/ {print $NF}' > dirs.txt
  14. dirnames=`cat dirs.txt`
  15.  
  16. $i = 0
  17. for loop while($i != EOF)
  18.       cd $line[$i]
  19.       fastaddcommit.sh
  20.       fastpush.sh
  21.  
  22. sudo poweroff
Add Comment
Please, Sign In to add comment