diff --git a/buildsuite b/buildsuite index deae106..7039ca8 100755 --- a/buildsuite +++ b/buildsuite @@ -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: