diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-08-03 14:24:21 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2009-08-05 19:29:15 +0200 |
commit | 7797debad9c55949482e111992c3cd10b221809f (patch) | |
tree | d45d6c9134b26600d31ea5d719dea2d7d066825d /mkinitcpio | |
parent | b8800749b5e301bdf76c8aa1509ea5653d9e7c51 (diff) | |
download | mkinitcpio-7797debad9c55949482e111992c3cd10b221809f.tar.gz mkinitcpio-7797debad9c55949482e111992c3cd10b221809f.tar.xz |
Do not rely on -L test; use -h instead.
See `man dash`
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-x | mkinitcpio | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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})" |