14 lines
203 B
Bash
Executable file
14 lines
203 B
Bash
Executable file
#!/bin/sh
|
|
|
|
bail() {
|
|
echo fail: $*
|
|
exit 1
|
|
}
|
|
|
|
while ! [[ -f .publish ]]; do
|
|
[[ "$PWD" = "/" ]] && bail "no .publish file found"
|
|
cd ..
|
|
done
|
|
|
|
source .publish
|
|
scp -r $1 $PUBLISH_HOST:$PUBLISH_DIR
|