mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-05 20:41:35 -07:00
10 lines
240 B
Bash
Executable file
10 lines
240 B
Bash
Executable file
#!/bin/bash
|
|
# TODO: Find a less trashy way to get the next available error code
|
|
|
|
shopt -s globstar
|
|
|
|
for i in 1 2
|
|
do
|
|
last=$(grep -hv "^prop" ./**/*.hs | grep -Ewo "$i[0-9]{3}" | sort -n | tail -n 1)
|
|
echo "Next ${i}xxx: $((last+1))"
|
|
done
|