1
0
mirror of https://github.com/rancher/os.git synced 2025-09-16 15:09:27 +00:00

Get only the filename

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-25 15:52:00 +10:00
parent 8f4b2bc458
commit b2cbd62a8d

View File

@@ -20,8 +20,8 @@ if [[ ! -e "$DIST" ]]; then
fi
source ${DIST}/../../scripts/version
VMLINUX=$(ls -1 ${DIST}/vmlinuz-* | head -n1)
INITRD="${DIST}/initrd-${VERSION}"
VMLINUX=$(ls -1 ${DIST}/ | grep "^vmlinuz-" | head -n1)
INITRD="initrd-${VERSION}"
IP=$(curl ipinfo.io/ip)
PORT=2115