Skip to content

Instantly share code, notes, and snippets.

@kellertuer
Created April 16, 2018 18:48
Show Gist options
  • Save kellertuer/649b69278a2518ddab3d6cf65cead1e0 to your computer and use it in GitHub Desktop.
Save kellertuer/649b69278a2518ddab3d6cf65cead1e0 to your computer and use it in GitHub Desktop.
#!/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