mirror of
https://github.com/trapd00r/LS_COLORS.git
synced 2024-11-13 07:11:09 +01:00
Removed unnecessary use of 'grep -P' per #39
This commit is contained in:
parent
43b60c66a8
commit
1933106caa
1 changed files with 6 additions and 1 deletions
|
@ -17,6 +17,10 @@
|
|||
#
|
||||
|
||||
# Functions {{{1
|
||||
lscolors_buildsuite_print_extensions() {
|
||||
sed -r -e '/^[ ]+#/d; /^[^\.\*]/d; /^$/d; s/^([\.\*][^ ]+).*/\1/' ../LS_COLORS
|
||||
}
|
||||
|
||||
verbose() {
|
||||
if [[ "$verbose" = "1" ]]; then
|
||||
echo "$1" >&2
|
||||
|
@ -121,6 +125,7 @@ while read line; do
|
|||
touch ./DIRECTORY/"$line"
|
||||
fi
|
||||
fi
|
||||
done < <(sed -r -e '/^[ ]+#/d; /^[^\.\*]/d; /^$/d' ../LS_COLORS | grep -Po '^[\.\*]([A-z0-9]+)' )
|
||||
done < <( lscolors_buildsuite_print_extensions )
|
||||
|
||||
|
||||
# vim: ft=sh foldmethod=marker:
|
||||
|
|
Loading…
Reference in a new issue