wget $url || { echo "Couldn't find cloud image $url."; exit 1; }
fi
echo "Creating new cached cloud image rootfs"
- tar --wildcards -zxf $tarname $imgname
+ tar --wildcards -zxf "$tarname" "$imgname"
mount -o loop $imgname $xdir
- (cd $xdir; tar --numeric-owner -cpzf ../$filename .)
+ (cd $xdir; tar --numeric-owner -cpzf "../$filename" .)
umount $xdir
rm -f $tarname $imgname
rmdir $xdir
echo "Extracting container rootfs"
mkdir -p $rootfs
cd $rootfs
- tar --numeric-owner -xpzf $cache/$filename
+ tar --numeric-owner -xpzf "$cache/$filename"
}
if [ -n "$tarball" ]; then