echo a reminder to change shell to zsh
This commit is contained in:
parent
fee6b64675
commit
7cb5d54e08
1 changed files with 14 additions and 0 deletions
14
publish
Executable file
14
publish
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/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
|
||||
Loading…
Reference in a new issue