Skip to content

Commit

Permalink
Don't check for upgrade script when upgrading addon (closes #4)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpb committed May 30, 2015
1 parent c952054 commit 84e42f6
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions subcommands/upgrade
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 84e42f6

Please sign in to comment.