summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2009-08-03 14:24:21 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-08-05 19:29:15 +0200
commit7797debad9c55949482e111992c3cd10b221809f (patch)
treed45d6c9134b26600d31ea5d719dea2d7d066825d /functions
parentb8800749b5e301bdf76c8aa1509ea5653d9e7c51 (diff)
downloadmkinitcpio-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 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 8ad214a..7546088 100644
--- a/functions
+++ b/functions
@@ -87,7 +87,7 @@ add_device ()
add_symlink ()
{
local fil dest dir
- if [ -L ${1} ]; then
+ if [ -h ${1} ]; then
fil="${1##$BASEDIR}"
dest="${2##$BASEDIR}"
add_dir $(dirname "${dest}")