From b2cbd62a8d7d8f31f551cf4c3a14c569a7421858 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Sat, 25 Mar 2017 15:52:00 +1000 Subject: [PATCH] Get only the filename Signed-off-by: Sven Dowideit --- scripts/hosting/digitalocean/host.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/hosting/digitalocean/host.sh b/scripts/hosting/digitalocean/host.sh index 26234438..19989811 100755 --- a/scripts/hosting/digitalocean/host.sh +++ b/scripts/hosting/digitalocean/host.sh @@ -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