Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2021-07-24 22:54:31 +0300
committernachoparker <nacho@ownyourbits.com>2021-07-25 23:59:07 +0300
commit665ed28ae6e84f154bff10916e1636244fc88f9b (patch)
tree7e1cb75c38ebb87a4c8d8f211a612a442deb4ade /run_update_history.sh
parenteffdd6cdb3057a60457d71c4bd3d4298d76f2d65 (diff)
build: trap and curl installer fixes
Signed-off-by: nachoparker <nacho@ownyourbits.com>
Diffstat (limited to 'run_update_history.sh')
-rwxr-xr-xrun_update_history.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/run_update_history.sh b/run_update_history.sh
index add3a29c..4faa5c2f 100755
--- a/run_update_history.sh
+++ b/run_update_history.sh
@@ -103,7 +103,10 @@ if is_more_recent_than "$latest_checkpoint_version" "$current_version" ; then
for(( i="$starting_checkpoint"; i<="$end_of_list"; i++)); do
update_file=${updates_list[$i]}
tag_update=$( basename "$update_file" .sh )
- bash "$updates_dir/$update_file" || exit 1
+ bash "$updates_dir/$update_file" || {
+ echo "Error while applying update $(basename "$update_file" .sh). Exiting..."
+ exit 1
+ }
echo "v$tag_update" > /usr/local/etc/ncp-version
[[ $i != $end_of_list ]] && echo -e "NextCloudPi updated to version v$tag_update" || true
done