14 lines
196 B
Plaintext
14 lines
196 B
Plaintext
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
SERVER="http"
|
||
|
REMOTE_PATH="/srv/http/u.wut.ee"
|
||
|
FILE="$1"
|
||
|
|
||
|
if [[ -z "$FILE" || ! -e "$FILE" ]]; then
|
||
|
echo "Usage: $0 <FILE>"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
scp "$FILE" $SERVER:$REMOTE_PATH
|