include files with asterisks instead of dots

This commit is contained in:
Ryan Delaney 2014-07-07 09:52:29 -07:00
parent 5f192717c2
commit 14d3784a8a
1 changed files with 7 additions and 2 deletions

View File

@ -114,8 +114,13 @@ chmod 0777 WORLDWRITEABLE
# Supported extensions
while read line; do
if [[ ! -f test"$line" ]]; then
touch ./DIRECTORY/test"$line"
line="${line//\*/}"
if [[ "${line:0:1}" == "." ]]; then
touch ./DIRECTORY/test"$line"
else
touch ./DIRECTORY/"$line"
fi
fi
done < <(sed -r -e '/^[ ]+#/d; /^[^\.]/d; /^$/d' ../LS_COLORS | grep -Po '^\.([A-z0-9]+)' )
done < <(sed -r -e '/^[ ]+#/d; /^[^\.\*]/d; /^$/d' ../LS_COLORS | grep -Po '^[\.\*]([A-z0-9]+)' )
# vim: ft=sh foldmethod=marker: