#!/bin/sh set -e set -u if [ $# -lt 2 ] ; then echo 'Usage: upload-release USERNAME VERSION [DIR]' echo 'Must be called in directory with binaries or with path' exit 1 fi USER=$1 REL=$2 if [ $# -gt 2 ] ; then cd "$3" fi sftp $USER,phpmyadmin@frs.sourceforge.net <