diff --git a/nextnumber b/nextnumber index 27dfa0a9b..ab411ac29 100755 --- a/nextnumber +++ b/nextnumber @@ -5,6 +5,6 @@ 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) + last=$(grep -hv "^prop" ./**/*.hs | grep -Ewo "$i[0-9]{3}" | sort -n | tail -n 1) echo "Next ${i}xxx: $((last+1))" done