Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Hobson 901f301f9b
Merge pull request #378 from Brikaa/pre-commit
Fix Piston script after rebase
2021-10-14 23:47:35 +13:00
Brikaa dfd6beb6ed Fix piston script after rebase 2021-10-14 12:44:51 +02:00
1 changed files with 1 additions and 3 deletions

4
piston
View File

@ -17,7 +17,7 @@ docker_compose(){
init_precommit() { init_precommit() {
if [ $PISTON_ENV == "dev" ]; then if [ $PISTON_ENV == "dev" ]; then
rm -f .git/hooks/pre-commit rm -f .git/hooks/pre-commit
ln -s $(realpath $(dirname "$0"))/pre-commit .git/hooks/pre-commit ln -s "$PISTON_PATH/pre-commit" "$PISTON_PATH/.git/hooks/pre-commit"
fi fi
} }
@ -67,8 +67,6 @@ case $1 in
restart) docker_compose restart ;; restart) docker_compose restart ;;
start) start)
init_precommit init_precommit
rm -f .git/hooks/pre-commit
ln -s "$PISTON_PATH/pre-commit" "$PISTON_PATH/.git/hooks/pre-commit"
docker_compose up -d docker_compose up -d
;; ;;
stop) docker_compose down ;; stop) docker_compose down ;;