Skip to content

Commit

Permalink
🐛 FIX: #142
Browse files Browse the repository at this point in the history
  • Loading branch information
apolopena committed May 22, 2021
1 parent cfed7f6 commit ff55841
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .gp/bash/examples/init-react-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ all_zeros='^0$|^0*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.0.0.tar.gz
curl -LJO https://github.com/apolopena/qna-demo-skeleton/archive/refs/tags/1.1.0.tar.gz
exit_codes+=($?)
tar -xvzf QnA-demo-skeleton-1.0.0.tar.gz --strip-components=1
tar --overwrite -xvzf qna-demo-skeleton-1.1.0.tar.gz --strip-components=1
exit_codes+=($?)
rm QnA-demo-skeleton-1.0.0.tar.gz
exit_codes+=($?)
php artisan migrate
exit_codes+=($?)
php artisan db:seed
exit_codes+=($?)
yarn run mix
rm qna-demo-skeleton-1.1.0.tar.gz
exit_codes+=($?)

if [[ $(echo "${exit_codes[@]}" | tr -d '[:space:]') =~ $all_zeros ]]; then
Expand Down

0 comments on commit ff55841

Please sign in to comment.