summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-09-20 15:03:46 +0200
committerDave Reisner <dreisner@archlinux.org>2013-09-20 15:03:46 +0200
commitc1e8eb0e130a1f8e9dd8253478a0a626b4f441cc (patch)
treeb429083a33e20da78c9d7e77b9d1a7e46a7c9e47 /functions
parentb76977e710cebed3a799f0ac0b25b1a380323745 (diff)
downloadmkinitcpio-c1e8eb0e130a1f8e9dd8253478a0a626b4f441cc.tar.gz
mkinitcpio-c1e8eb0e130a1f8e9dd8253478a0a626b4f441cc.tar.xz
functions: always add toplevel dir in add_full_dir
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'functions')
-rw-r--r--functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index e54f4bf..4f231b1 100644
--- a/functions
+++ b/functions
@@ -413,11 +413,12 @@ add_full_dir() {
local f=
if [[ -n $1 && -d $1 ]]; then
+ add_dir "$1"
+
for f in "$1"/*; do
if [[ -L $f ]]; then
add_symlink "$f" "$(readlink "$f")"
elif [[ -d $f ]]; then
- add_dir "$f"
add_full_dir "$f"
elif [[ -f $f ]]; then
add_file "$f"