#!/bin/sh set -eu APK_FILENAME=$1 UPLOADED=$(rsync -i --ignore-existing $APK_FILENAME sillywalk.de:/srv/www/sillywalk.de/root/releases) if [ -z "$UPLOADED" ]; then echo "$VERSION already uploaded. Aborting." exit 1 fi