Skip to content

Commit

Permalink
fix: full invocation of script
Browse files Browse the repository at this point in the history
  • Loading branch information
shakefu committed Jul 21, 2023
1 parent 921a9eb commit cebe12d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/extensions.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

EXTENSIONS=<<EOF
4ops.terraform
Expand Down Expand Up @@ -64,7 +64,7 @@ windmilleng.vscode-go-autotest
zeshuaro.vscode-python-poetry
EOF

for name in "$EXTENSIONS"; do
for name in $(echo "$EXTENSIONS"); do
echo "Installing $name ..."
code --install-extension "$name"
done
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,7 @@ COPY .devcontainer/extensions.sh ./extensions.sh
RUN chmod 777 extensions.sh
# Switch to codespace user to install extensions correctly
USER codespace
RUN pwd && ls -lah
RUN ./extensions.sh && \
rm extensions.sh
RUN /tmp/shakefu/extensions.sh

# Build home tool from source
WORKDIR /tmp/shakefu/home
Expand Down

0 comments on commit cebe12d

Please sign in to comment.