Explorar el Código

Remove duplicate items from $SHELLFU_PATH

Alois Mahdal hace 8 años
padre
commit
87c7f48238
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/shellfu.sh.skel

+ 1
- 0
src/shellfu.sh.skel Ver fichero

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