1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-23 01:52:27 +00:00
gists/repos/90c0497c0b207812cbbc/upload.sh
J. Fernando Sánchez 58397e7325 Add 'repos/90c0497c0b207812cbbc/' from commit '3c24001f1d275493227a82cf85d178e8f9752e55'
git-subtree-dir: repos/90c0497c0b207812cbbc
git-subtree-mainline: 3eaae25ed7
git-subtree-split: 3c24001f1d
2021-10-30 15:13:12 +02:00

27 lines
374 B
Bash

#!/bin/bash
if [ $# -lt 1 ]
then
echo "Please, specify an ontology"
exit 0
else
ONTO=$1
fi
if [ $# -lt 2 ]
then
DIR=~/Doctorado/Ontologies/$ONTO/spec/
else
DIR=$2
fi
if [ $# -lt 3 ]
then
REMOTE=ontologies@gsi.dit.upm.es:$ONTO/
else
REMOTE=$3
fi
echo "Uploading to $REMOTE"
#scp -r $DIR $REMOTE
sftp $REMOTE -b <<EOF
mput -r $DIR
EOF