diff options
Diffstat (limited to 'Omni')
-rwxr-xr-x | Omni/Ide/ailint.sh (renamed from Omni/Ide/ailint.bash) | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Omni/Ide/ailint.bash b/Omni/Ide/ailint.sh index 0291335..55d6ebe 100755 --- a/Omni/Ide/ailint.bash +++ b/Omni/Ide/ailint.sh @@ -3,5 +3,4 @@ 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" 2>&1 1>> "$instructions" -[[ $? -ne 0 ]] && aider --yes --message-file "$instructions" "$target" +[[ ! $(lint -f "$target" >> "$instructions" 2>&1) ]] && aider --yes --message-file "$instructions" "$target" |