Skip to content
Permalink
Browse files

Fix the blacklisted files retrieval

To fix:

    find: warning: ‘-name’ matches against basenames only, but the given pattern contains a directory separator (‘/’), thus the expression will evaluate to false all the time.  Did you mean ‘-wholename’?
  • Loading branch information...
BoboTiG committed Sep 6, 2019
1 parent ca5d905 commit 5da36fb54d5847ed76d2b9959d96722cbc857923
Showing with 1 addition and 1 deletion.
  1. +1 −1 appdir-lint.sh
@@ -138,7 +138,7 @@ else
fi


BLACKLISTED_FILES=$(cat "${HERE}/excludelist" | sed '/^\s*$/d' | sed '/^#.*$/d')
BLACKLISTED_FILES=$(cat "${HERE}/excludelist" | sed '/^\s*$/d ; /^#.*$/d ; s/\s*#.*$//')
for FILE in $BLACKLISTED_FILES ; do
if [ ! -z $(find "${APPDIR}" -name $FILE) ] ; then
warn "Blacklisted file $FILE found"

0 comments on commit 5da36fb

Please sign in to comment.
You can’t perform that action at this time.