|
@@ -255,8 +255,12 @@ dlverify() { |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
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 |
|
|
if ! verifyfile "$vermid" "$fname"; then |
|
|
echo 'Removing bad file.' |
|
|
echo 'Removing bad file.' |
|
|