Created
April 16, 2018 18:48
-
-
Save kellertuer/649b69278a2518ddab3d6cf65cead1e0 to your computer and use it in GitHub Desktop.
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 | |
cd ./_site | |
for d in $(find . -type f); do echo "$d$"; curl --user $USERNAME:$PASSWORD --silent --ftp-create-dirs --upload-file "$d" -sS ftp://$HOST/$BASE/www/"$d"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment