remove rootfs tarball before downloading a new one

This commit is contained in:
Dan Johansen 2020-12-01 13:55:57 +01:00
parent 5aee15001d
commit a564c66e5e
No known key found for this signature in database
GPG Key ID: 084A7FC0035B1D49
1 changed files with 3 additions and 0 deletions

View File

@ -124,6 +124,9 @@ create_install() {
# fetch and extract rootfs
info "Downloading latest $ARCH rootfs..."
cd $TMPDIR
if [ -f Manjaro-ARM-$ARCH-latest.tar.gz* ]; then
rm Manjaro-ARM_$ARCH-latest.tar.gz*
fi
wget -q --show-progress --progress=bar:force:noscroll https://osdn.net/projects/manjaro-arm/storage/.rootfs/Manjaro-ARM-$ARCH-latest.tar.gz
info "Extracting $ARCH rootfs..."