From a0312301179d76333e4c936ffea350c13209f643 Mon Sep 17 00:00:00 2001 From: v4n <105587619+v4n00@users.noreply.github.com> Date: Fri, 21 Feb 2025 16:06:20 +0200 Subject: [PATCH] fix: bash black magic --- h2mm | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/h2mm b/h2mm index 821812a..8491b94 100755 --- a/h2mm +++ b/h2mm @@ -1095,55 +1095,55 @@ function main() { check_for_updates case "$command" in - install|i) + "install"|"i") mod_install "$@" ;; - list|l) + "list"|"l") mod_list "$@" ;; - uninstall|u) + "uninstall"|"u") mod_uninstall "$@" ;; - enable|e) + "enable"|"e") mod_enable "$@" ;; - disable|d) + "disable"|"d") mod_disable "$@" ;; - export|ex) + "export"|"ex") mod_export "$@" ;; - import|im) + "import"|"im") mod_import "$@" ;; - modpack-list|ml) + "modpack-list"|"ml") modpack_list "$@" ;; - modpack-create|mc) + "modpack-create"|"mc") modpack_create "$@" ;; - modpack-delete|md) + "modpack-delete"|"md") modpack_delete "$@" ;; - modpack-overwrite|mo) + "modpack-overwrite"|"mo") modpack_overwrite "$@" ;; - modpack-switch|ms) + "modpack-switch"|"ms") modpack_switch "$@" ;; - modpack-reset|mr) + "modpack-reset"|"mr") modpack_reset "$@" ;; - reset|r) + "reset"|"r") mod_reset "$@" ;; - version|v|-v|--version) + "version"|"v"|"-v"|"--version") echo "${VERSION}" ;; - update|up) + "update"|"up") self_update ;; - help|--help|-h|h) + "help"|"--help"|"-h"|"h") display_help ;; *)