Skip to content

Commit

Permalink
Only report if setup is complete if .git directory exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmachine committed Aug 13, 2020
1 parent 561d798 commit c755fce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ixc_django_docker/bin/bash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,15 @@ For detailed documentation, see:
EOF

# Compare git commit and print reminder if setup has not completed successfully.
GIT_COMMIT="$(git rev-parse HEAD)"
if [[ "$GIT_COMMIT" != $(cat "$PROJECT_DIR/var/setup-git-commit.txt" 2>&1) ]]; then
>&2 cat <<EOF
if [[ -d .git ]]; then
GIT_COMMIT="$(git rev-parse HEAD)"
if [[ "$GIT_COMMIT" != $(cat "$PROJECT_DIR/var/setup-git-commit.txt" 2>&1) ]]; then
>&2 cat <<EOF
WARNING: Setup is not complete for git commit: '$GIT_COMMIT'
Run 'setup.sh' manually.
EOF
fi
fi

export PS1="($PROJECT_NAME:$DOTENV) \u@\h:\w\n\\$ "
Expand Down

0 comments on commit c755fce

Please sign in to comment.