Skip to content

Commit 18ecbc1

Browse files
authored
Update setup.sh
1 parent 15baf82 commit 18ecbc1

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.devcontainer/setup.sh

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,37 @@
11
#!/usr/bin/env bash
22

33
echo 'Please wait for setup to finish ...'
4-
# eval "$(micromamba shell hook --shell bash )"
4+
eval "$(micromamba shell hook --shell bash )"
55

66
# get repo
77

88
if [ $(find . -maxdepth 1 -type d ! -name . ! -name .devcontainer | wc -l) -eq 0 ];
99
then
1010

11+
# move files selectively
12+
1113
mv .devcontainer ..
1214
git clone "$target_repo" .
15+
16+
mv -f ../.devcontainer/devcontainer.json .devcontainer
17+
rm -rf ../.devcontainer
18+
19+
# remove cloned and reinstate original .devcontainer folder
1320
# rm -rf .devcontainer
1421
# git clean -f -f
1522
# mv ../.devcontainer .
16-
mv -f ../.devcontainer/devcontainer.json .devcontainer
17-
rm -rf ../.devcontainer
1823

1924
else
2025

2126
echo Contents available :
2227

2328
fi
2429

25-
# micromamba activate
26-
# micromamba install -y -n base -f .devcontainer/env.yaml
27-
# micromamba clean --all --yes
30+
micromamba activate
31+
micromamba install -y -n base -f .devcontainer/env.yaml
32+
micromamba clean --all --yes
2833

2934
# project dependencies installed via package.json
3035
# and postinstall script
3136

32-
# npm install
37+
npm install

0 commit comments

Comments
 (0)