Skip to content

Commit

Permalink
test: Test CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MAHDTech committed Jul 22, 2023
1 parent 7c25f89 commit 640e282
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions nix/oci/tanzu/root/etc/profile.d/tanzu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ if [[ -f "${HOME}/.config/tanzu/config.yaml" ]]; then
fi

# Make sure that the interactive parts are not run in a a VSCode remote env.
if [[ "${ENVIRONMENT_VSCODE^^}" == "REMOTE" ]]; then
if [[ "${ENVIRONMENT_VSCODE^^}" == "CONTAINER" ]]; then

echo "$(date '+%Y/%m/%d %T'): INFO: VSCode remote environment detected, skipping interactive parts." | tee -a "/tmp/vscode-remote-env.log"
echo "$(date '+%Y/%m/%d %T'): INFO: VSCode container environment detected, skipping interactive parts." | tee -a "/tmp/environment.log"

else

Expand Down
7 changes: 5 additions & 2 deletions nix/oci/tanzu/root/etc/skel/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,9 @@ if ! shopt -oq posix; then
fi

# Make sure that the interactive parts are not run in a a VSCode remote env.
if [[ "${ENVIRONMENT_VSCODE^^}" == "REMOTE" ]]; then
if [[ "${ENVIRONMENT_VSCODE^^}" == "CONTAINER" ]]; then

echo "$(date '+%Y/%m/%d %T'): INFO: VSCode remote environment detected, skipping interactive parts." | tee -a "/tmp/vscode-remote-env.log"
echo "$(date '+%Y/%m/%d %T'): INFO: VSCode container environment detected, skipping interactive parts." | tee -a "/tmp/environment.log"

else

Expand All @@ -132,3 +132,6 @@ else
fi

echo "INFO: Finished loading .bashrc"

# When running in a VSCode environment, drop a log file for tracking
echo "$(date '+%Y/%m/%d %T'): INFO: VSCode Environment: ${ENVIRONMENT_VSCODE}" >> "/tmp/environment.log"
4 changes: 2 additions & 2 deletions nix/oci/tanzu/root/usr/local/bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ fi
/usr/bin/env bash --login -i || true

# Make sure that the interactive parts are not run in a a VSCode remote env.
if [[ "${ENVIRONMENT_VSCODE^^}" == "REMOTE" ]]; then
if [[ "${ENVIRONMENT_VSCODE^^}" == "CONTAINER" ]]; then

echo "$(date '+%Y/%m/%d %T'): INFO: VSCode remote environment detected, skipping interactive parts." | tee -a "/tmp/vscode-remote-env.log"
echo "$(date '+%Y/%m/%d %T'): INFO: VSCode container environment detected, skipping interactive parts." | tee -a "/tmp/environment.log"

else

Expand Down

0 comments on commit 640e282

Please sign in to comment.