From dbde1433950707f1a62a1eda61da215115ce29ec Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Thu, 15 Mar 2018 14:16:31 +0100 Subject: [PATCH] Move to an existing if --- scripts/upgrade | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index de16619..099d842 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -176,6 +176,8 @@ do # then it's the last upgrade to do if [ "$major_version" -eq "$current_major_version" ]; then current_major_version=last + # Patch nexcloud files only for the last upgrade. + cp -a ../sources/patches_last_version ../sources/patches fi # Load the value for this version @@ -191,12 +193,6 @@ do # Create a temporary directory tmpdir=$(mktemp -d) - # Patch nexcloud files only for the last upgrade. - if [ "$current_major_version" = "last" ] - then - cp -a ../sources/patches_last_version ../sources/patches - fi - # Install the next nextcloud version in $tmpdir ynh_setup_source "$tmpdir"