diff options
| author | Steph Enders <steph@senders.io> | 2025-12-13 23:50:51 -0500 |
|---|---|---|
| committer | Steph Enders <steph@senders.io> | 2025-12-13 23:54:06 -0500 |
| commit | 21424b25438059a39dcdcd94ea31b6746e5c69d2 (patch) | |
| tree | cfcaf198103276b1ab04ab096fb6dddb300656ca /ssync-fetch | |
| parent | 9e143acfdfc9e69997d46c71cc52a0947d572a2c (diff) | |
Initial work on making scripts work in non-bash envs
Replace function defs with dash legal function syntax:
function fn { } -> fn() { }
Diffstat (limited to 'ssync-fetch')
| -rwxr-xr-x | ssync-fetch | 4 |
1 files changed, 2 insertions, 2 deletions
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) } |