My laptop is Mac and CircleCI uses Linux and I have to run shell script in CircleCI like below.

```
SOME_ERROR_TEXT="some error text verbose verbose"
if yarn schema-codegen | grep "$SOME_ERROR_TEXT"; then
echo "success!"
exit 1
else
echo "failure!"
fi
```

The result of `yarn schmea-codegen`

contains `SOME_EROR_TEXT`

.

```
some error text verbose verbose lorem ipsum dfaskldjfskdljfldsakjfkldsjflksdjf
dsflsdjflkjdsfjlkdsjfljdslkfjlkdsjfjdsljfldsjfkjjj
11123123213123
'''''
```

This script is working on my Mac, but it is not working on CircleCI environment. Is there wrong syntax in my script? If not, I will solve this problem on CI. Thanks

Unix & Linux Asked on November 21, 2021

0 Answers3 Asked on August 10, 2020 by ssiresha-garimella

1 Asked on August 9, 2020 by akhil-jalagam

0 Asked on August 6, 2020 by chloe

5 Asked on August 4, 2020 by ripper234

1 Asked on August 3, 2020 by mishal-ahmed

1 Asked on July 29, 2020 by mmaluff

Get help from others!

Recent Questions

- How to prove $phi'(t)1_{Omega_t}(w)$ is measurable?
- Using characteristic functions to determine distribution of sum of independent normal random variables.
- Radioactivity formula using differential equations?
- What is the algebraic interpretation of a contracted product?
- $f:[0,1]rightarrow[0,1]$, measurable, and $int_{[0,1]}f(x)dx=yimplies m{x:f(x)>frac{y}{2}}geqfrac{y}{2}$.

Recent Answers

- user577215664 on Radioactivity formula using differential equations?
- alex.jordan on Radioactivity formula using differential equations?
- zkutch on $f:[0,1]rightarrow[0,1]$, measurable, and $int_{[0,1]}f(x)dx=yimplies m{x:f(x)>frac{y}{2}}geqfrac{y}{2}$.
- Oliver Diaz on How to prove $phi'(t)1_{Omega_t}(w)$ is measurable?
- SarGe on Radioactivity formula using differential equations?

© 2021 InsideDarkWeb.com. All rights reserved.