backup_exit=$?
-if [ "$backup_exit" != "0" ]; then
- fatal "Error creating snapshot"
-fi
+#if [ "$backup_exit" != "0" ]; then
+# fatal "Error creating snapshot"
+#fi
info "Pruning repository..."
prune_exit=$?
-if [ "$prune_exit" != "0" ]; then
- fatal "Error pruning repository"
+#if [ "$prune_exit" != "0" ]; then
+# fatal "Error pruning repository"
+#fi
+
+# Use highest exit code as global exit code
+global_exit=$(( backup_exit > prune_exit ? backup_exit : prune_exit ))
+
+if [ ${global_exit} -eq 1 ]; then
+ info "Backup and/or Prune finished with a warning"
+fi
+
+if [ ${global_exit} -gt 1 ]; then
+ fatal "Backup and/or Prune finished with an error"
fi
-# use highest exit code as global exit code
-#global_exit=$(( backup_exit > prune_exit ? backup_exit : prune_exit ))
-#
-#if [ ${global_exit} -eq 1 ];
-#then
-# info "Backup and/or Prune finished with a warning"
-#fi
-#
-#if [ ${global_exit} -gt 1 ];
-#then
-# info "Backup and/or Prune finished with an error"
-#fi
-#
#exit ${global_exit}