diff --git a/etc/ci/check_no_unwrap.sh b/etc/ci/check_no_unwrap.sh index e70fa31192a..2d949cd591c 100755 --- a/etc/ci/check_no_unwrap.sh +++ b/etc/ci/check_no_unwrap.sh @@ -13,4 +13,8 @@ FILES=("components/compositing/compositor.rs" "components/compositing/pipeline.rs" "components/constellation/constellation.rs") -! grep -n "unwrap(\|panic!(" "${FILES[@]}" +# make sure the files exist +ls -1 "${FILES[@]}" + +# make sure the files do not contain "unwrap" or "panic!" +! grep --line-number --with-filename "unwrap(\|panic!(" "${FILES[@]}"