File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -90,16 +90,16 @@ runs:
9090
9191 # Check if file exists
9292 # Run bash -n syntax check
93- if ! bash -n "$FILE" 2>&1 | tee -a "$tmp_error"; then
94- echo "❌ bash -n failed for $FILE" | tee -a "$tmp_error"
95- ((error_count++))
96- fi
93+ bash -n "$FILE" > >( tee -a "$tmp_error") 2>&1 || {
94+ echo "❌ bash -n failed for $FILE" | tee -a "$tmp_error"
95+ ((error_count++))
96+ }
9797
9898 # Run shellcheck
99- if ! shellcheck --format=tty -- color=always "$FILE" 2>&1 | tee -a "$tmp_error"; then
100- echo "❌ shellcheck failed for $FILE" | tee -a "$tmp_error"
101- ((error_count++))
102- fi
99+ shellcheck --color=always "$FILE" > >( tee -a "$tmp_error") 2>&1 || {
100+ echo "❌ shellcheck failed for $FILE" | tee -a "$tmp_error"
101+ ((error_count++))
102+ }
103103
104104 # If errors were found, add to main log
105105 if [ -s "$tmp_error" ]; then
You can’t perform that action at this time.
0 commit comments