rewrite scripts to use bash because it's more cross-platform
This commit is contained in:
parent
0d7f0689be
commit
4b74b3930b
9
admin/client_edit.bash
Normal file
9
admin/client_edit.bash
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$TREEHOUSE_PATH"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "* Running editor"
|
||||||
|
"$EDITOR" content/index.tree
|
||||||
|
|
||||||
|
bash admin/client_push.bash
|
|
@ -1,9 +0,0 @@
|
||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
cd $TREEHOUSE_PATH
|
|
||||||
|
|
||||||
echo
|
|
||||||
set_color white --bold; echo "* Running editor"; set_color normal
|
|
||||||
eval $EDITOR content/index.tree
|
|
||||||
|
|
||||||
fish admin/client_push.fish
|
|
19
admin/client_push.bash
Normal file
19
admin/client_push.bash
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$TREEHOUSE_PATH"
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "* Fixing the tree"
|
||||||
|
cargo run -p treehouse fix-all --apply
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "* Committing changes"
|
||||||
|
git add \
|
||||||
|
content static template \
|
||||||
|
treehouse.toml
|
||||||
|
git commit
|
||||||
|
git push
|
||||||
|
|
||||||
|
echo
|
||||||
|
echo "* Uploading to server"
|
||||||
|
bash admin/client_sync.bash
|
|
@ -1,19 +0,0 @@
|
||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
cd $TREEHOUSE_PATH
|
|
||||||
|
|
||||||
echo
|
|
||||||
set_color white --bold; echo "* Fixing the tree"; set_color normal
|
|
||||||
cargo run -p treehouse fix-all --apply
|
|
||||||
|
|
||||||
echo
|
|
||||||
set_color white --bold; echo "* Committing changes"; set_color normal
|
|
||||||
git add \
|
|
||||||
content static template \
|
|
||||||
treehouse.toml
|
|
||||||
git commit
|
|
||||||
git push
|
|
||||||
|
|
||||||
echo
|
|
||||||
set_color white --bold; echo "* Uploading to server"; set_color normal
|
|
||||||
fish admin/client_sync.fish
|
|
3
admin/client_sync.bash
Normal file
3
admin/client_sync.bash
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
ssh "$TREEHOUSE_SERVER" -p "$TREEHOUSE_SERVER_PORT" 'fish' '$TREEHOUSE_PATH/admin/server_sync.fish'
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
ssh $TREEHOUSE_SERVER -p $TREEHOUSE_SERVER_PORT 'fish' '$TREEHOUSE_PATH/admin/server_sync.fish'
|
|
Loading…
Reference in a new issue