
2 Feb
2021
2 Feb
'21
10:36 a.m.
+ +download_os_rootfs() +{ + mkdir -p /srv/os/${rootfs_dir} + cd /srv/os/$rootfs_dir + + download_url="http://api.compass-ci.openeuler.org:${SRV_HTTP_PORT}/os/${rootfs_dir}.cgz" + wget $download_url + + [ "$?" -ne 0 ] && { + log_error "failed to download os rootfs: $download_url" + exit 1 + } + + gzip -dc ${os_version}.cgz | cpio -id + rm -rf ${os_version}.cgz
the file download with wget is $os_version.cgz? I think it's better add '-O filename' to specified the filename for the wget command. Thanks, Luan Shengde
+} + +download_os_rootfs -- 2.23.0