Skip to content

Commit

Permalink
🐛 FIX: #21
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed Feb 5, 2021
1 parent aeae153 commit 0769139
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ USER gitpod
RUN sudo touch /var/log/workspace-image.log \
&& sudo chmod 666 /var/log/workspace-image.log

RUN sudo touch /var/log/workspace-init.log \
&& sudo chmod 666 /var/log/workspace-init.log

RUN sudo touch /var/log/xdebug.log \
&& sudo chmod 666 /var/log/xdebug.log

Expand Down
6 changes: 5 additions & 1 deletion bash/init-gitpod.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

log () {
echo "$1" | tee -a '/var/log/workspace-init.log'
}

# Load spinner
. bash/third-party/spinner.sh

Expand All @@ -8,7 +12,7 @@ if [ ! -d "$GITPOD_REPO_ROOT/bootstrap" ]; then
echo "Results of building the workspace image ➥"
cat /var/log/workspace-image.log
# Todo replacespinner with a real progress bar for coreutils
start_spinner "\nMoving Laravel project from ~/temp-app to $GITPOD_REPO_ROOT "
log "\nMoving Laravel project from ~/temp-app to $GITPOD_REPO_ROOT " | tee | start_spinner
shopt -s dotglob
mv --no-clobber ~/test-app/* $GITPOD_REPO_ROOT
RESULT=$?
Expand Down

0 comments on commit 0769139

Please sign in to comment.