Guest User

Untitled

a guest
Jun 22nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. on run
  2. --do shell script "/usr/local/git/bin/git"
  3. set localFontcase to "~/Library/Application\\ Support/Fontcase/"
  4. set changedFiles to do shell script "cd " & localFontcase & "; /usr/local/git/bin/git diff --name-only"
  5. if changedFiles is not {} then
  6. do shell script "cd ~/Library/Application Support/Fontcase/; /usr/local/git/bin/git commit -a -m \"autocommit done after local changes\"; /usr/local/git/bin/git push "
  7. else
  8. display dialog
  9. end if
  10. display dialog changedFiles
  11. --do shell script "cd ~/Library/Application Support/Fontcase/; git commit -a -m \"autocommit done after local changes\" "
  12.  
  13. end run
Add Comment
Please, Sign In to add comment