diff options
| -rw-r--r-- | VERSION | 2 | ||||
| -rw-r--r-- | docs/ssync-fetch.1 | 2 | ||||
| -rw-r--r-- | docs/ssync-index.1 | 2 | ||||
| -rw-r--r-- | docs/ssync-queue.1 | 2 | ||||
| -rw-r--r-- | docs/ssync.1 | 2 | ||||
| -rwxr-xr-x | ssync | 16 | ||||
| -rwxr-xr-x | ssync-fetch | 4 | ||||
| -rwxr-xr-x | ssync-index | 10 | ||||
| -rwxr-xr-x | ssync-queue | 4 |
9 files changed, 18 insertions, 26 deletions
@@ -1 +1 @@ -"December 2025" "2.0.0"
\ No newline at end of file +"December 2025" "2.1.0"
\ No newline at end of file diff --git a/docs/ssync-fetch.1 b/docs/ssync-fetch.1 index 643300a..3b0a2e4 100644 --- a/docs/ssync-fetch.1 +++ b/docs/ssync-fetch.1 @@ -44,4 +44,4 @@ unless a host alias is set in the users Steph Enders .MT steph@senders.io .ME -ssync-fetch is open source licensed under the ISC license. See LICENSE.txt for full copyright information. +ssync-fetch is open source licensed under the ISC license. See LICENSE for full copyright information. diff --git a/docs/ssync-index.1 b/docs/ssync-index.1 index 384ba81..72ff368 100644 --- a/docs/ssync-index.1 +++ b/docs/ssync-index.1 @@ -45,4 +45,4 @@ Window in seconds to look back for new files while indexing. This option will li Steph Enders .MT steph@senders.io .ME -ssync-index is open source licensed under the ISC license. See LICENSE.txt for full copyright information. +ssync-index is open source licensed under the ISC license. See LICENSE for full copyright information. diff --git a/docs/ssync-queue.1 b/docs/ssync-queue.1 index c542ea0..287b522 100644 --- a/docs/ssync-queue.1 +++ b/docs/ssync-queue.1 @@ -36,4 +36,4 @@ Queue output file. Steph Enders .MT steph@senders.io .ME -ssync-queue is open source licensed under the ISC license. See LICENSE.txt for full copyright information. +ssync-queue is open source licensed under the ISC license. See LICENSE for full copyright information. diff --git a/docs/ssync.1 b/docs/ssync.1 index e4e9c28..15c0b45 100644 --- a/docs/ssync.1 +++ b/docs/ssync.1 @@ -26,4 +26,4 @@ Fetching backend: sftp (default) / rsync Steph Enders .MT steph@senders.io .ME -ssync is open source licensed under the ISC license. See LICENSE.txt for full copyright information. +ssync is open source licensed under the ISC license. See LICENSE for full copyright information. @@ -8,12 +8,12 @@ USAGE="ssync [options] CONFIG_FILE -h print this message" # HELPER METHODS -function verbose_log { +verbose_log() { if [ ! -z "$VERBOSE_FLAG" ]; then echo "$1" fi } -function lines { +lines() { echo $(wc -l $1 | cut -d' ' -f1) } @@ -53,16 +53,8 @@ if [ ! -f "$CONFIG_FILE" ]; then exit 1 fi -source $CONFIG_FILE - -# ssync_dir=DIR -# key_file=KEY_FILE -# index_window_s=N -# output_files_dir=PATH -# remote_host=HOSTNAME -# remote_root_dir=DIR -# local_root_dir=DIR -# fetch_output_dir=DIR +# load config file +. $CONFIG_FILE if [ -d "$ssync_dir" ]; then if [ ! -f "$ssync_dir/ssync-index" ]; then diff --git a/ssync-fetch b/ssync-fetch index 0fab1b9..5c6e53d 100755 --- a/ssync-fetch +++ b/ssync-fetch @@ -17,12 +17,12 @@ USAGE="ssync-fetch [options] QUEUE_FILE DEST_DIR # HELPER FUNCTIONS -function verbose_log { +verbose_log() { if [ ! -z "$VERBOSE_FLAG" ]; then echo "$@" fi } -function lines { +lines() { echo $(wc -l $1 | cut -d' ' -f1) } diff --git a/ssync-index b/ssync-index index a823093..8c29758 100755 --- a/ssync-index +++ b/ssync-index @@ -18,12 +18,12 @@ USAGE="ssync-index [options] ROOT_DIR -h print this message" # HELPER METHODS -function verbose_log { +verbose_log() { if [ ! -z "$VERBOSE_FLAG" ]; then echo "$1" fi } -function lines { +lines() { wc -l $1 | cut -d' ' -f1 } @@ -89,9 +89,9 @@ if [ -z "$REMOTE_HOST_ARG" ]; then fi # Option Validation -output_to= -if [ ! -z "$OUTPUT_FILE_FLAG" ]; then - output_to="> $OUTPUT_FILE_ARG" +if [ -z "$OUTPUT_FILE_FLAG" ]; then + echo "-o output file required" + exit 1 fi keyfile_cmd="" diff --git a/ssync-queue b/ssync-queue index 9aacf0a..021c1c3 100755 --- a/ssync-queue +++ b/ssync-queue @@ -13,12 +13,12 @@ USAGE="ssync-queue [options] -l LOCAL_INDEX_FILE -r REMOTE_INDEX_FILE -o QUEUE_O # HELPER FUNCTIONS -function verbose_log { +verbose_log() { if [ ! -z "$VERBOSE_FLAG" ]; then echo "$@" fi } -function lines { +lines() { echo $(wc -l $1 | cut -d' ' -f1) } |