This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding initial version of run-k8s-istio-openstack-full-demo.sh script
- Loading branch information
Showing
1 changed file
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env bash | ||
|
||
################################################ | ||
# include the magic | ||
################################################ | ||
test -f ./demo-magic.sh || curl --silent https://raw.githubusercontent.com/paxtonhare/demo-magic/master/demo-magic.sh > demo-magic.sh | ||
. ./demo-magic.sh -n | ||
|
||
################################################ | ||
# Configure the options | ||
################################################ | ||
|
||
# | ||
# speed at which to simulate typing. bigger num = faster | ||
# | ||
TYPE_SPEED=40 | ||
|
||
# Uncomment to run non-interactively | ||
export PROMPT_TIMEOUT=1 | ||
|
||
# No wait | ||
export NO_WAIT=true | ||
|
||
# | ||
# custom prompt | ||
# | ||
# see http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html for escape sequences | ||
# | ||
#DEMO_PROMPT="${GREEN}➜ ${CYAN}\W " | ||
DEMO_PROMPT="${GREEN}➜ ${CYAN}$ " | ||
|
||
# hide the evidence | ||
clear | ||
|
||
sed -n '/^```bash$/,/^```$/p;/^-----$/p' README.md | \ | ||
sed -n '/^test -d files/,$p' | sed '1s/^/```bash\n/' | \ | ||
sed -e 's/^-----$/\ | ||
p ""\ | ||
p "################################################################################################### Press <ENTER> to continue"\ | ||
wait\ | ||
/' \ | ||
-e 's/^```bash$/\ | ||
pe '"'"'/' \ | ||
-e 's/^```$/'"'"'/' \ | ||
> README.sh | ||
|
||
|
||
source README.sh |