update comments

This commit is contained in:
James Swineson 2019-04-09 17:59:37 +08:00
parent 0d7394db9a
commit 5c163f0deb

View file

@ -26,7 +26,11 @@ confirm() {
get_rootfs() {
if [ -n ${ROOTFS} ]; then
echo "Getting rootfs URL..."
# forgive me for parsing HTML with these shit
# and hope it works
ROOTFS_TIME=$(curl "https://uk.images.linuxcontainers.org/images/debian/stretch/amd64/default/?C=M;O=D" | grep "folder.gif" | head -n 1 | cut -d'>' -f7 | cut -d'/' -f1)
ROOTFS="https://images.linuxcontainers.org/images/debian/stretch/amd64/default/${ROOTFS_TIME}/rootfs.squashfs"
else
echo "\$ROOTFS is set to '$ROOTFS'"