Last active
February 11, 2016 22:09
-
-
Save borisdiakur/37b8f512f6f8865b79c7 to your computer and use it in GitHub Desktop.
Bash script for transmitting all changed (tracked and uncommited) files in a git repo to an ftp server via Transmits DockSend.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#: Title : ftpush | |
#: Author : Boris Diakur | |
#: Version : 1.0 | |
#: Description : Transmits all changed (tracked and uncommited) files to an ftp server via Transmits DockSend. | |
#: Options : None | |
for i in $(git status --short --untracked-files=no); do | |
if [[ -e "$i" ]]; then | |
echo "Transmitting $i" | |
open -a Transmit "$i" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment