aboutsummaryrefslogtreecommitdiff
path: root/ssync-queue
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-queue
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-queue')
-rwxr-xr-xssync-queue4
1 files changed, 2 insertions, 2 deletions
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)
}