From 878079e1d3d4c982e220a5d7284eec2f6519b47c Mon Sep 17 00:00:00 2001 From: Pavel Vinogradov Date: Thu, 3 Jun 2021 15:10:43 -0400 Subject: [PATCH] scribe: don't download/clone all over again when updating --- usr/sbin/scribe | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/sbin/scribe b/usr/sbin/scribe index 3aa58a54..f0197ed4 100755 --- a/usr/sbin/scribe +++ b/usr/sbin/scribe @@ -281,7 +281,11 @@ scribe_add_update_worker() { # download it local scribe_target scribe_type - url_download "$grim_target" "$from" "" scribe_target scribe_type + if [[ $add_or_update == update ]]; then + url_download "$grim_name" "$from" "" scribe_target scribe_type + else + url_download "$grim_target" "$from" "" scribe_target scribe_type + fi #check the success of the download if [ $? != 0 ]; then -- 2.38.5