Skip to content

Commit

Permalink
Banner should only show in vscode terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Oct 3, 2024
1 parent 8335c27 commit 37e3024
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lab/scripts/banner.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash

cat << EOT > /home/ec2-user/.bashrc.d/banner.bash
if [ ! -f ~/.banner ]; then
touch ~/.banner
cat << EOF
if [ "\$TERM_PROGRAM" = "vscode" ]; then
if [ ! -f ~/.banner ]; then
touch ~/.banner
cat << EOF
Welcome to
Expand All @@ -17,5 +18,6 @@ if [ ! -f ~/.banner ]; then
Hands-on labs for Amazon Elastic Kubernetes Service
EOF
fi
fi
EOT

0 comments on commit 37e3024

Please sign in to comment.