update comments
This commit is contained in:
parent
0d7394db9a
commit
5c163f0deb
1 changed files with 4 additions and 0 deletions
|
@ -26,7 +26,11 @@ confirm() {
|
||||||
get_rootfs() {
|
get_rootfs() {
|
||||||
if [ -n ${ROOTFS} ]; then
|
if [ -n ${ROOTFS} ]; then
|
||||||
echo "Getting rootfs URL..."
|
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_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"
|
ROOTFS="https://images.linuxcontainers.org/images/debian/stretch/amd64/default/${ROOTFS_TIME}/rootfs.squashfs"
|
||||||
else
|
else
|
||||||
echo "\$ROOTFS is set to '$ROOTFS'"
|
echo "\$ROOTFS is set to '$ROOTFS'"
|
||||||
|
|
Loading…
Reference in a new issue