From 1933106caad01a00c163eea04649533c913de255 Mon Sep 17 00:00:00 2001 From: Ryan Delaney Date: Wed, 29 Jul 2015 17:46:04 -0700 Subject: [PATCH] Removed unnecessary use of 'grep -P' per #39 --- buildsuite | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildsuite b/buildsuite index 7039ca8..bfc5dbf 100755 --- a/buildsuite +++ b/buildsuite @@ -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: