[arch-projects] [mkinitcpio] [PATCH 1/2] functions: always add toplevel dir in add_full_dir
Dave Reisner
dreisner at archlinux.org
Sat Sep 21 19:57:58 EDT 2013
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
this function could probably use some more cleanup, but i'll save that
for another rainy day.
functions | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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"
--
1.8.4
More information about the arch-projects
mailing list