Skip to content

Instantly share code, notes, and snippets.

View WassimAkachi's full-sized avatar
🎯
Focusing

Wassim Akachi WassimAkachi

🎯
Focusing
View GitHub Profile
@jgatjens
jgatjens / go prod ftp
Created July 26, 2016 05:22
Upload folder to a FTP using lftp command.
#!/bin/bash
read -p "Are you sure you want to go to production? <y/N> " prompt
if [[ $prompt =~ [yY](es)* ]]
then
echo "---- UPDATE example.net SITE ----"
HOST="ftp.example.net"
USER="username"
PASS="password"
FTPURL="ftp://$USER:$PASS@$HOST"
LCD="/Users/username/Sites/project-name"