introduce isnumeric function
This commit is contained in:
parent
97c9dfb986
commit
f9d0b56f97
3 changed files with 10 additions and 3 deletions
|
|
@ -100,6 +100,8 @@ function confirm-file-overwrite {
|
|||
[[ "$OVERWRITE" = false ]] || confirm
|
||||
}
|
||||
|
||||
function isnumeric { [[ "$1" =~ ^[0-9]+$ ]]; }
|
||||
|
||||
# ====== Core ======
|
||||
function run-subcmd {
|
||||
# if CMD_MIN is empty, then CMD_MAJ is the root cmd (ie ceru)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue