Created
April 9, 2015 18:43
-
-
Save yene/39bd8c79798f8b202ae1 to your computer and use it in GitHub Desktop.
FTP upload master branch
This file contains 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 | |
git clone -b master --single-branch . temp | |
cd temp | |
find . -type f -exec curl -u USER:PASSWORD --ftp-create-dirs -T {} ftp://server/path/to/www/{} \; | |
rm -rf temp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment