Skip to content

Commit 6b2728f

Browse files
committed
Fix installation scripts
1 parent a55a4c6 commit 6b2728f

File tree

4 files changed

+33
-1
lines changed

4 files changed

+33
-1
lines changed

.devcontainer/install/03-generate-file-vscode-extensions-json.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ echo -e "${BLUE}##### #####${E
1111
echo -e "${BLUE}#############################################################${ENDCOLOR}"
1212

1313
mkdir -p $SOURCE_PATH
14-
mkdir "$WORKSPACE_PATH/.vscode"
14+
mkdir -p "$WORKSPACE_PATH/.vscode"
1515

1616
if [ -f "$WORKSPACE_PATH/.vscode/extensions.json" ]; then
1717
echo -e "\n${YELLOW}Nothing to do because file is already existing.\n${ENDCOLOR}"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# ignored: app-python
4+
5+
. "$WORKSPACE_PATH/tools/color.sh"
6+
7+
echo -e "\n${BLUE}#############################################################${ENDCOLOR}"
8+
echo -e "${BLUE}##### #####${ENDCOLOR}"
9+
echo -e "${BLUE}##### Generate local.settings.json file #####${ENDCOLOR}"
10+
echo -e "${BLUE}##### #####${ENDCOLOR}"
11+
echo -e "${BLUE}#############################################################${ENDCOLOR}"
12+
13+
projects=(`ls $SOURCE_PATH/`)
14+
15+
created=false
16+
17+
for project in "${projects[@]}"; do
18+
19+
if [ ! -f "$SOURCE_PATH/$project/local.settings.json" ]; then
20+
echo -e "\n${GREEN}> Generate local.settings.json file for ${project}.${ENDCOLOR}"
21+
cp "$SOURCE_PATH/$project/local.settings.json-example" "$WORKSPACE_PATH/src/$project/local.settings.json"
22+
echo -e "\nDone."
23+
created=true
24+
fi
25+
26+
done
27+
28+
if [ $created == false ]; then
29+
echo -e "\n${YELLOW}Nothing to do.${ENDCOLOR}"
30+
fi
31+
32+
echo -e ""

.devcontainer/install/90-clean-installation-file.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)