summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--functions7
1 files changed, 5 insertions, 2 deletions
diff --git a/functions b/functions
index ed6d78d..b37ac87 100644
--- a/functions
+++ b/functions
@@ -346,9 +346,12 @@ add_full_dir() {
if [[ -n $1 && -d $1 ]]; then
for f in "$1"/*; do
- if [[ -d "$f" ]]; then
+ if [[ -L $f ]]; then
+ add_symlink "$f" "$(readlink "$f")"
+ elif [[ -d $f ]]; then
+ add_dir "$f"
add_full_dir "$f"
- else
+ elif [[ -f $f ]]; then
add_file "$f"
fi
done