nsbin/release_tmp
Nico Schottelius 9468f9b060 update
Signed-off-by: Nico Schottelius <nico@bento.schottelius.org>
2013-10-26 23:28:38 +02:00

15 lines
275 B
Bash
Executable file

#!/bin/sh -e
file="$1"
host=home.schottelius.org
dir=public_html/temp/
url="http://home.schottelius.org/~nico/temp"
[ -z "$file" ] && exit 1
bfile="$(basename "$file")"
scp "$file" "${host}:$dir"
ssh $host "chmod a+r \"$dir/$bfile\""
echo "Pre-released ${url}/${bfile}"