Skip to content

Commit

Permalink
get rid of shopt globstar
Browse files Browse the repository at this point in the history
  • Loading branch information
stschaef committed May 29, 2024
1 parent e806746 commit d67b41a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions check-line-lengths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
# originally written by Steven Schaefer <stschaef>

error=0
# Bash 4 or 5 to run this
shopt -s globstar nullglob

VENV_DIR="env"

Expand All @@ -28,7 +26,7 @@ pip3 install wcwidth || { echo "Failed to install wcwidth."; exit 3; }

echo "Package 'wcwidth' has been successfully installed in the virtual environment."

for file in **/*.agda; do
while IFS= read -r -d '' file; do
python3 -c '
import sys
from wcwidth import wcswidth
Expand All @@ -43,5 +41,5 @@ except Exception as e:
print(f"Error processing {filename}: {e}")
sys.exit(1)
' "${file}" || error=1
done
done < <(find . -name '*.agda' -print0)
exit ${error}

0 comments on commit d67b41a

Please sign in to comment.