#!/bin/sh set -e set -u if [ $# -lt 2 ] ; then echo 'Usage: upload-release VERSION [DIR]' echo 'Must be called in directory with binaries or with path' exit 1 fi REL=$1 if [ $# -gt 2 ] ; then cd "$3" fi # Upload to our file server sftp -P 11022 files@klutz.phpmyadmin.net <