diff options
Diffstat (limited to 'Omni')
-rwxr-xr-x | Omni/Ide/ailint.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Omni/Ide/ailint.sh b/Omni/Ide/ailint.sh index 55d6ebe..a107be8 100755 --- a/Omni/Ide/ailint.sh +++ b/Omni/Ide/ailint.sh @@ -3,4 +3,9 @@ set -xu target=${1:?} instructions=$(mktemp) echo "Fix the following lint errors, or silence them with a `# noqa:` comment if they aren't problematic:" >> "$instructions" -[[ ! $(lint -f "$target" >> "$instructions" 2>&1) ]] && aider --yes --message-file "$instructions" "$target" +if lint -f "$target" >> "$instructions" 2>&1 +then + echo "no bad lints" +else + aider --yes --message-file "$instructions" "$target" +fi |