Commit c7e31dab authored by Isabella Skořepová's avatar Isabella Skořepová

Allow to select ftp vs sftp

parent 726885df
......@@ -11,5 +11,15 @@ node index.js --noserver
echo "Site compiled"
chmod a+X build -R
echo "======================================================================"
echo "Uploading to"
lftp -c "set ftp:ssl-allow no; open --user --env-password; mirror -c --verbose=9 -e -R -L ./build /"
if [ $1 == "ftp" ]; then
echo "Using FTP"
lftp -c "set ftp:ssl-allow no;open --user --env-password; mirror -c --verbose=9 -e -R -L ./build /"
echo "Using SFTP"
lftp -c "set ftp:ssl-allow no;open --user --env-password -p 2121 s; mirror -c --verbose=9 -e -R -L ./build /"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment