Compare commits
4 Commits
c53097f07f
...
ce3200ef7d
Author | SHA1 | Date |
---|---|---|
Fierelier | ce3200ef7d | |
Fierelier | ce290bcb47 | |
Fierelier | bea7576321 | |
Fierelier | 787aff82b3 |
|
@ -20,6 +20,14 @@ if [ "$remote_project" != "" ]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
set +e
|
||||
ssh "$(project-sshn)" test -d "~/project-manager/projects/$1"
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "ERROR: Project does not exist or SSH failed."
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
|
||||
echo "$local_host" | ssh "$(project-sshn)" "cat > "~/project-manager/host""
|
||||
echo "$1" | ssh "$(project-sshn)" "cat > "~/project-manager/project""
|
||||
rsync --progress --delete -a "$(project-sshn):~/project-manager/projects/$1/." "project"
|
||||
|
|
Loading…
Reference in New Issue