include files with asterisks instead of dots
This commit is contained in:
parent
5f192717c2
commit
14d3784a8a
|
@ -114,8 +114,13 @@ chmod 0777 WORLDWRITEABLE
|
|||
# Supported extensions
|
||||
while read line; do
|
||||
if [[ ! -f test"$line" ]]; then
|
||||
line="${line//\*/}"
|
||||
if [[ "${line:0:1}" == "." ]]; then
|
||||
touch ./DIRECTORY/test"$line"
|
||||
else
|
||||
touch ./DIRECTORY/"$line"
|
||||
fi
|
||||
done < <(sed -r -e '/^[ ]+#/d; /^[^\.]/d; /^$/d' ../LS_COLORS | grep -Po '^\.([A-z0-9]+)' )
|
||||
fi
|
||||
done < <(sed -r -e '/^[ ]+#/d; /^[^\.\*]/d; /^$/d' ../LS_COLORS | grep -Po '^[\.\*]([A-z0-9]+)' )
|
||||
|
||||
# vim: ft=sh foldmethod=marker:
|
||||
|
|
Loading…
Reference in New Issue