summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert "ar" Gerus <ar@bash.org.pl>2013-05-02 01:32:57 +0200
committerRobert "ar" Gerus <ar@bash.org.pl>2013-05-02 01:32:57 +0200
commitde14bbef2d394cbfe37e9fbf5b07012f5ba62b57 (patch)
tree97c3908cc1f212933f1f2722bd32cee6f3c059c2
parentb8b6ef1018b991133d28ad38342f8a8f8c47aab5 (diff)
downloadtar-xz-loading-initramfs-de14bbef2d394cbfe37e9fbf5b07012f5ba62b57.tar.gz
tar-xz-loading-initramfs-de14bbef2d394cbfe37e9fbf5b07012f5ba62b57.tar.bz2
tar-xz-loading-initramfs-de14bbef2d394cbfe37e9fbf5b07012f5ba62b57.tar.xz
tar-xz-loading-initramfs-de14bbef2d394cbfe37e9fbf5b07012f5ba62b57.zip
Be a little less nazi in the mkinitramfs script
-rwxr-xr-xscripts/mkinitramfs2
1 files changed, 1 insertions, 1 deletions
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!"