fix(package): migrator: index_of subshell issue
This commit is contained in:
@@ -6,3 +6,15 @@ columns() {
|
||||
FROM information_schema.columns
|
||||
WHERE table_name = '"${1};"
|
||||
}
|
||||
|
||||
# is_number(var)
|
||||
is_number() {
|
||||
case "$1" in
|
||||
*[!0-9]*)
|
||||
return 1
|
||||
;;
|
||||
*)
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user