1#!/bin/bash 2USAGE="Usage: upload_site_sftp.sh host path user" 3 4# command line checks, bash 5if [ $# -ne 3 ]; then 6 echo ${USAGE} 7 exit 0 8fi 9host=$1 10path=$2 11user=$3 12 13echo Uploading generated docs to ${host}/${path}/btstack-arduino with user ${user} 14 15# SFTP is very peculiar: recursive put only works for a single directory 16sftp ${user}@${host} << EOF 17 mkdir ${path}/btstack-arduino 18 put -r btstack-arduino ${path} 19 quit 20EOF 21