Skip to content

Commit 19894f1

Browse files
committed
Merge branch 'master' of git+ssh://[email protected]/MADhacking/hacking-bash-lib
2 parents c1799bd + 13552a0 commit 19894f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/lib/hacking-bash.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function is_positive_integer
234234
{
235235
(( $# < 1 )) && return 1
236236

237-
[[ $1 =~ ^([1-9][0-9]*|0)$ ]] && return 0
237+
[[ $1 =~ ^([0-9]+)$ ]] && return 0
238238

239239
return 1
240240
}

0 commit comments

Comments
 (0)