10 lines
219 B
Bash
Executable File
10 lines
219 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
cd "$(dirname "$(readlink -f -- "$0")")"
|
|
|
|
[[ -z "$1" ]] && echo "ERROR: no destination" >&1 && exit 1
|
|
|
|
scp -r home/. "$1:/tmp/workspace"
|
|
ssh "$1" "cp -rfT /tmp/workspace ~/ && rm -rf /tmp/workspace"
|