mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-14 10:37:26 -07:00
Alias ash to dash with warning.
This commit is contained in:
parent
cf1c46d852
commit
fee6c94d40
4 changed files with 27 additions and 5 deletions
10
nextnumber
Executable file
10
nextnumber
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/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
|
Loading…
Add table
Add a link
Reference in a new issue