aboutsummaryrefslogtreecommitdiff
path: root/ssync-fetch
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2025-12-13 23:50:51 -0500
committerSteph Enders <steph@senders.io>2025-12-13 23:54:06 -0500
commit21424b25438059a39dcdcd94ea31b6746e5c69d2 (patch)
treecfcaf198103276b1ab04ab096fb6dddb300656ca /ssync-fetch
parent9e143acfdfc9e69997d46c71cc52a0947d572a2c (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-xssync-fetch4
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)
}