# Use arithmetic expansion instead of \`expr\` in \`\./script/clear-target-dir-if-larger-than\` \(\#47298\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/40fe79938b5f5674c76c1c49967df749ab1de66e)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 40fe79938b5f5674c76c1c49967df749ab1de66e

Requested commit: 40fe79938b5f5674c76c1c49967df749ab1de66e

Commit: 40fe79938b5f5674c76c1c49967df749ab1de66e

Tree: f9f1812173845ff687fa031b8fd827f66ddeea57

Author: Ben Kunkle

Committer: GitHub

## Message

```
Use arithmetic expansion instead of `expr` in `./script/clear-target-dir-if-larger-than` (#47298)

Fixes CI failures when the target dir is 0GB in size, which causes
`expr` to output a non-zero exit code per the posix spec.

See exit status section of
https://www.man7.org/linux/man-pages/man1/expr.1p.html

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

- [8fb5587ed8736d04212fb485003e2c60bfcc8b61](https://git.cafe/gitcafe/zed/commit/8fb5587ed8736d04212fb485003e2c60bfcc8b61?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/40fe79938b5f5674c76c1c49967df749ab1de66e?format=markdown)
