Browse Source

Remove duplicate items from $SHELLFU_PATH

Alois Mahdal 8 years ago
parent
commit
87c7f48238
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/shellfu.sh.skel

+ 1
- 0
src/shellfu.sh.skel View File

158
             local incdir
158
             local incdir
159
             echo "$SHELLFU_INCLUDE-sh:$SHELLFU_INCLUDE-$SHELLFU_COMPAT:$SHELLFU_PATH" \
159
             echo "$SHELLFU_INCLUDE-sh:$SHELLFU_INCLUDE-$SHELLFU_COMPAT:$SHELLFU_PATH" \
160
               | tr ":" '\n' \
160
               | tr ":" '\n' \
161
+              | awk '!seen[$0]++' \
161
               | while read -r incdir;
162
               | while read -r incdir;
162
                 do
163
                 do
163
                     shellfu __debug "checking: $incdir"
164
                     shellfu __debug "checking: $incdir"