From 84e42f6f46bf0fc2c5e30750ce25c7a21e79e1af Mon Sep 17 00:00:00 2001 From: "Stuart P. Bentley" Date: Fri, 29 May 2015 22:14:32 -0700 Subject: [PATCH] Don't check for upgrade script when upgrading addon (closes #4) --- subcommands/upgrade | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/subcommands/upgrade b/subcommands/upgrade index 9801f98..257039a 100755 --- a/subcommands/upgrade +++ b/subcommands/upgrade @@ -25,20 +25,10 @@ addon=$2 if [[ -n "$addon" ]]; then addon_path=$PLUSHU_APPS_DIR/$app/addons/$addon - service_path=$PLUSHU_SERVICES_DIR/$addon - upgrade_script=$service_path/upgrade # If this app has this addon if [[ -e "$addon_path" ]]; then - # And this addon can be upgraded - if [[ -x "$upgrade_script" ]]; then - "$PLUSHU_ROOT/lib/plushook" upgrade-addon "$app" "$addon" - - # If this addon doesn't have an "upgrade" executable - else - echo "Service '$addon' has no upgrade operation" >&2 - exit 1 - fi + "$PLUSHU_ROOT/lib/plushook" upgrade-addon "$app" "$addon" # If the addon isn't already added else