~sourcemage/sorcery

878079e1d3d4c982e220a5d7284eec2f6519b47c — Pavel Vinogradov 2 years ago ad0e5bf
scribe: don't download/clone all over again when updating
1 files changed, 5 insertions(+), 1 deletions(-)

M usr/sbin/scribe
M usr/sbin/scribe => usr/sbin/scribe +5 -1
@@ 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