#!/bin/bash set -e host=$1 version=`git describe --tags` echo $version here=$(dirname "$0") cd $here/../dist sftp -oBatchMode=no -b - thomasv@$host << ! cd electrum-downloads mkdir $version cd $version mput * bye !