From 4ca81aaee6272498fc42501c4fe57d7e50616d6a Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Wed, 20 Sep 2017 15:31:26 -0400 Subject: common: Ignore .swp files in repository --- lib/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common.sh b/lib/common.sh index 07df773..95422e8 100644 --- a/lib/common.sh +++ b/lib/common.sh @@ -13,7 +13,7 @@ # limitations under the License. mapfile -t GTD_TXT_DATA < <(find "${GTD_TXT_REPOSITORY:-$HOME/gtd.txt/data}" \ - -maxdepth 1 -type f -not -name '*~') + -regextype posix-extended -maxdepth 1 -type f -not -regex '.*(~|.swp)') GTD_TXT_DATA=("${GTD_TXT_DATA[@]}" /dev/null) # ensure GTD_TXT_DATA is nonempty readonly GTD_TXT_DATA -- cgit v1.2.3