mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-11 19:55:52 +02:00
backupiso: don't redownload source iso every time.
This commit is contained in:
@@ -15,8 +15,11 @@ TS=$1
|
||||
mkdir -p /var/tmp/backupiso
|
||||
cd /var/tmp/backupiso
|
||||
|
||||
echo "Fetching ${URL}${ISO}"
|
||||
wget --quiet -c ${URL}${ISO}
|
||||
if [ ! -e ${ISO} ]
|
||||
then
|
||||
echo "Fetching ${URL}${ISO}"
|
||||
wget --quiet -c ${URL}${ISO}
|
||||
else
|
||||
echo "Fetching ${URL}${ISO}.md5"
|
||||
wget --quiet -O ${ISO}.md5 ${URL}${ISO}.md5
|
||||
|
||||
|
||||
Reference in New Issue
Block a user