script: correct typo and add additional rebuild command

This commit is contained in:
Thomas Hobson 2021-07-16 23:12:46 +12:00
parent de89acb617
commit f58927d79a
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 4 additions and 1 deletions

5
piston
View File

@ -35,11 +35,12 @@ case $1 in
echo " clean-pkgs Clean any package build artifacts on disk" echo " clean-pkgs Clean any package build artifacts on disk"
echo " clean-repo Remove all packages from local repo" echo " clean-repo Remove all packages from local repo"
echo " build-pkg <package> <version> Build a package" echo " build-pkg <package> <version> Build a package"
echo " rebuild Build and restart the docker container"
else else
echo " Switch to developement environment for more info" echo " Switch to developement environment for more info"
echo " > piston switch dev" echo " > piston select dev"
fi fi
;; ;;
@ -52,6 +53,8 @@ case $1 in
start) docker_compose up -d ;; start) docker_compose up -d ;;
stop) docker_compose down ;; stop) docker_compose down ;;
rebuild) docker_compose build && docker_compose up -d ;;
update) update)
git pull git pull
docker_compose pull docker_compose pull