From c371488a184ce659bf28171a3fdde37f3ec390bf Mon Sep 17 00:00:00 2001
From: Bill <bill@billserver.senders.io>
Date: Sat, 19 Mar 2022 11:14:03 -0400
Subject: Create automv script

Automv script will allow a cronjob to easily move files from one dir to
another based on a find regex query. You can dynamically set what files
to look for and where using .conf files in the automv.d folder present
next to the script - or by setting its location in AUTOMV_DIR.

Dev note: I specifically avoided using $HOME/.local/automv.d/ because my
specific use case the user whose cron this will be in doesn't have a
home directory. An improvement could be expanding the smart defaults to
doing something like:
        if [[ -n "$HOME" ]]; then
                if [[ -d $HOME/.local/automv.d ]]; then
                        # use that
                else # etc
        else # etc

But I don't like long bash if/else nesting so I figured just set a local
default otherwise override in the env
---
 .gitignore | 1 +
 1 file changed, 1 insertion(+)
 create mode 100644 .gitignore

(limited to '.gitignore')

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2fead5c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+automv.d
-- 
cgit v1.2.3-54-g00ecf