summaryrefslogtreecommitdiff
path: root/Omni/Ide/ailint.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Omni/Ide/ailint.sh')
-rwxr-xr-xOmni/Ide/ailint.sh7
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