Skip to content

Commit 827eeff

Browse files
committed
sd
1 parent 5cb84b3 commit 827eeff

File tree

2 files changed

+35
-9
lines changed

2 files changed

+35
-9
lines changed

pages/bash/xx/xx-template.cjs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ module.exports = (setup) => {
1919
command: `
2020
set -e
2121
# git config core.excludesFile .git/.gitignore_local
22-
# read -p " Press enter to continue\\n\\n"
22+
23+
# echo -e "\n Press enter to continue\n"
24+
# read
25+
2326
# source .env
2427
# source .env.sh
2528
export NODE_OPTIONS=""
@@ -47,7 +50,10 @@ cat <<EEE
4750
/bin/bash bash/swap-files-v2.sh package.json package.dev.json -- yarn
4851
4952
EEE
50-
read -p " Press enter to continue\n\n"
53+
54+
echo -e "\n Press enter to continue\n"
55+
read
56+
5157
/bin/bash bash/swap-files-v2.sh package.json package.dev.json -- yarn
5258
`,
5359
description: `swap and yarn`,
@@ -76,7 +82,10 @@ cat <<EEE
7682
open -a "Google Chrome" "file://$(realpath "coverage/index.html")"
7783
7884
EEE
79-
read -p "\n Press enter to continue\n"
85+
86+
echo -e "\n Press enter to continue\n"
87+
read
88+
8089
open "file://$(realpath "coverage/index.html")"
8190
`,
8291
confirm: false,
@@ -106,7 +115,10 @@ JEST_COVERAGE_PORT="4286"
106115
cat <<EEE
107116
http://localhost:\${JEST_COVERAGE_PORT}
108117
EEE
109-
read -p "\n Press enter to continue\n"
118+
119+
echo -e "\n Press enter to continue\n"
120+
read
121+
110122
python -m http.server \${JEST_COVERAGE_PORT} --directory ./coverage
111123
112124
# for python version 2.7
@@ -127,7 +139,10 @@ echo "BRANCH>\${BRANCH}<"
127139
echo "PROJECT_NAME>\${PROJECT_NAME}<"
128140
echo "http://p3dw-sonar.cloud.phx3.gdg:9000/dashboard?id=\${PROJECT_NAME}"
129141
# look for link above in ~/.m2/settings.xml
130-
read -p "\n Press enter to continue\n"
142+
143+
echo -e "\n Press enter to continue\n"
144+
read
145+
131146
mvn clean test -DskipITs -B sonar:sonar -Dsonar.projectKey="\${PROJECT_NAME}" -Dsonar.projectName="\${PROJECT_NAME}"
132147
`,
133148
confirm: false,

xx.cjs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ module.exports = (setup) => {
2121
command: `
2222
set -e
2323
# git config core.excludesFile .git/.gitignore_local
24-
# read -p " Press enter to continue\\n\\n"
24+
25+
echo -e "\n Press enter to continue\n"
26+
read
27+
2528
source .env
2629
# source .env.sh
2730
@@ -80,7 +83,9 @@ EOF
8083
)"
8184
echo "\$COMMANDS"
8285
83-
read -p "\n Press enter to continue\n"
86+
echo -e "\n Press enter to continue\n"
87+
read
88+
8489
set -e
8590
eval "\$COMMANDS"
8691
@@ -167,7 +172,10 @@ cat <<EEE
167172
http://localhost:\${JEST_COVERAGE_PORT}
168173
169174
EEE
170-
read -p "\n Press enter to continue\n"
175+
176+
echo -e "\n Press enter to continue\n"
177+
read
178+
171179
python -m http.server \${JEST_COVERAGE_PORT} --directory pages/coverage
172180
`,
173181
confirm: false,
@@ -181,7 +189,10 @@ cat <<EEE
181189
open "file://$(realpath "coverage/index.html")"
182190
183191
EEE
184-
read -p "\n Press enter to continue\n"
192+
193+
echo -e "\n Press enter to continue\n"
194+
read
195+
185196
open "file://$(realpath "coverage/index.html")"
186197
`,
187198
confirm: false,

0 commit comments

Comments
 (0)