fix(package): migrator: index_of subshell issue

This commit is contained in:
2025-12-06 04:47:31 +00:00
parent 3b506a7888
commit 373a3fe3f0
8 changed files with 166 additions and 52 deletions

View File

@@ -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
}