From de14bbef2d394cbfe37e9fbf5b07012f5ba62b57 Mon Sep 17 00:00:00 2001 From: "Robert \"ar\" Gerus" Date: Thu, 2 May 2013 01:32:57 +0200 Subject: [PATCH] Be a little less nazi in the mkinitramfs script --- scripts/mkinitramfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/mkinitramfs b/scripts/mkinitramfs index 597c43a..4cfb13f 100755 --- a/scripts/mkinitramfs +++ b/scripts/mkinitramfs @@ -8,7 +8,7 @@ die() { [[ $# -eq 2 ]] || die 22 "Invalid number of arguments" [[ -d "${1}" ]] || die 20 "${1} is not a directory" -[[ -e "${2}" ]] && die 17 "${2} exists" +[[ -e "${2}" ]] && [[ ! -f "$(readlink -f "${2}")" ]] && die 17 "${2} exists and is not a file" [[ -f "${1}/pv" ]] || die 2 "${1}/pv does not exist. Read README!" [[ -f "${1}/busybox" ]] || die 2 "${1}/busybox does not exist. Read README!"