aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2017-09-20 15:31:26 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2017-09-20 15:31:26 -0400
commit4ca81aaee6272498fc42501c4fe57d7e50616d6a (patch)
tree9e2b7cb32434d3da936d050712aa23eb8d94b5cf
parent24b72cc1b5e982cc6f1c8bd001b842ab21d110c1 (diff)
common: Ignore .swp files in repository
-rw-r--r--lib/common.sh2
1 files changed, 1 insertions, 1 deletions
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