mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-21 19:41:09 +02:00
bin/qippl: log into www-data@downloads.qi-hardware.com or scp files
This commit is contained in:
parent
9a3f873f7d
commit
4952157fc4
25
bin/qippl
Executable file
25
bin/qippl
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
ACCT=www-data@downloads.qi-hardware.com
|
||||
DIR=werner
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
exec ssh $ACCT
|
||||
fi
|
||||
|
||||
if [ "${1#-}" != "$1" -o -z "$2" ]; then
|
||||
echo "usage: $0" 2>&1
|
||||
echo " $0 file ... dir" 2>&1
|
||||
exit 1
|
||||
fi
|
||||
|
||||
while [ "$2" ]; do
|
||||
args="$args \"$1\""
|
||||
shift
|
||||
done
|
||||
if [ "${1#/}" = "$1" ]; then
|
||||
dir=$DIR/$1
|
||||
else
|
||||
dir=$1
|
||||
fi
|
||||
eval scp $args $ACCT:$dir
|
Loading…
Reference in New Issue
Block a user