Skip to content

Commit

Permalink
🐛 FIX: #185
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed Jan 27, 2022
1 parent 31bd287 commit 5b5dec1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .gp/bash/examples/init-react-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ all_zeros='^[0]+$'
task_msg="Setting up React example: Questions and Answers"

log "$task_msg"
curl -LJO https://github.com/apolopena/qna-demo-skeleton/archive/refs/tags/1.1.0.tar.gz
curl -LJO https://github.com/apolopena/qna-demo-skeleton/archive/refs/tags/1.1.1.tar.gz
exit_codes+=($?)
tar --overwrite -xvzf qna-demo-skeleton-1.1.0.tar.gz --strip-components=1
tar --overwrite -xvzf qna-demo-skeleton-1.1.1.tar.gz --strip-components=1
exit_codes+=($?)
rm qna-demo-skeleton-1.1.0.tar.gz
rm qna-demo-skeleton-1.1.1.tar.gz
exit_codes+=($?)

if [[ $(echo "${exit_codes[@]}" | tr -d '[:space:]') =~ $all_zeros ]]; then
Expand Down
11 changes: 3 additions & 8 deletions .gp/bash/examples/init-react-typescript-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ declare -a exit_codes=()
task_msg="Downloading React Typescript example: Questions and Answers"

log "$task_msg"
#curl -LJO https://github.com/apolopena/qna-typescript-demo-skeleton/archive/refs/tags/1.1.0.tar.gz
curl -LJO https://github.com/apolopena/qna-typescript-demo-skeleton/archive/refs/tags/1.1.1a.tar.gz
curl -LJO https://github.com/apolopena/qna-typescript-demo-skeleton/archive/refs/tags/1.1.1.tar.gz
exit_codes+=($?)
#tar --overwrite -xvzf qna-typescript-demo-skeleton-1.1.0.tar.gz --strip-components=1
tar --overwrite -xvzf qna-typescript-demo-skeleton-1.1.1a.tar.gz --strip-components=1
tar --overwrite -xvzf qna-typescript-demo-skeleton-1.1.1.tar.gz --strip-components=1
exit_codes+=($?)
#rm qna-typescript-demo-skeleton-1.1.0.tar.gz
rm qna-typescript-demo-skeleton-1.1.1a.tar.gz
rm qna-typescript-demo-skeleton-1.1.1.tar.gz
exit_codes+=($?)

if [[ $(echo "${exit_codes[@]}" | tr -d '[:space:]') =~ ^[0]+$ ]]; then
Expand All @@ -32,5 +29,3 @@ else
fi




0 comments on commit 5b5dec1

Please sign in to comment.