summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index ba79882..de47553 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -243,7 +243,7 @@ for hook in ${HOOKS}; do
# Deprecation check
# A hook is considered deprecated if it is a symlink
# within $INSTDIR.
- if [ -L "${INSTDIR}/${hook}" ]; then
+ if [ -h "${INSTDIR}/${hook}" ]; then
newhook="$(readlink -ne "${INSTDIR}/${hook}")"
if [ -n "${newhook}" -a "${INSTDIR}/$(basename ${newhook})" -ef "${newhook}" ]; then
newhook="$(basename ${newhook})"