File tree Expand file tree Collapse file tree 2 files changed +15
-34
lines changed Expand file tree Collapse file tree 2 files changed +15
-34
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,8 +9,17 @@ cd "$(dirname "$0")/.."
99script/-studio-bootstrap
1010
1111
12+ # clean up environment
1213unset DEBUG
13- [ -n " ${1} " ] && cd " ${1} "
14+
15+
16+ # switch to alternative target directory if desired
17+ if [ -n " ${1} " ]; then
18+ echo
19+ echo " ==> studio: changing into directory ${1} "
20+ echo " Be sure to manually source .studiorc under the desired primary workspace"
21+ cd " ${1} "
22+ fi
1423
1524
1625echo
@@ -42,22 +51,22 @@ if [ "$(docker ps -aq -f name="${STUDIO_NAME}")" ]; then
4251 echo
4352 docker attach " ${STUDIO_NAME} "
4453 launch_studio=false
45- ;;
54+ break ;;
4655 s|S)
4756 echo " ==> studio: stopping existing container…"
4857 docker stop " ${STUDIO_NAME} " > /dev/null
49- ;;
58+ break ;;
5059 n|N)
5160 echo " ==> studio: doing nothing with existing container… an error is likely to occur"
52- ;;
61+ break ;;
5362 * )
54- echo " ==> studio: $choice is invalid"
55- ;;
63+ echo " ==> studio: $choice is invalid" ;;
5664 esac
5765 done
5866fi
5967
6068if [ $launch_studio = true ]; then
69+ export HAB_DOCKER_STUDIO_IMAGE=" ghcr.io/emergenceplatform/studio:latest"
6170 echo
6271 echo " ==> studio: launching Docker-powered Chef Habitat studio…"
6372 set +e
You can’t perform that action at this time.
0 commit comments