14 lines
196 B
Bash
14 lines
196 B
Bash
#!/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
|