nsbin/rm_tmp
Nico Schottelius 470951949e add rm_tmp
2021-11-25 10:36:11 +01:00

15 lines
282 B
Bash
Executable file

#!/bin/sh -e
file="$1"
host=staticweb.ungleich.ch
dir=/home/services/www/nico/www.nico.schottelius.org/www/temp
url="https://www.nico.schottelius.org/temp"
[ -z "$file" ] && exit 1
bfile="$(basename "$file")"
ssh "$host" "rm -f \"$dir/$bfile\""
echo "Deleted ${url}/${bfile}"