diff --git a/snapaid.sh b/snapaid.sh index 3402a85..6f2794f 100755 --- a/snapaid.sh +++ b/snapaid.sh @@ -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.'