Browse Source

If the image already exists, don't re-dl, just verify the existing image.

main
John-Mark Gurney 6 years ago
parent
commit
95cbf07136
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      snapaid.sh

+ 6
- 2
snapaid.sh View File

@@ -255,8 +255,12 @@ dlverify() {
return 1
fi

# fetch link
$WGET -- "$dlurl"
if ! [ -f $(basename "$dlurl") ]; then
# fetch link
$WGET -- "$dlurl"
else
echo 'Image already exists, verifying...'
fi

if ! verifyfile "$vermid" "$fname"; then
echo 'Removing bad file.'


Loading…
Cancel
Save