aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Ramos2024-04-16 18:47:01 +0200
committerGuillermo Ramos2024-04-16 18:47:01 +0200
commit1eb0eda96ace25d81fdf1f34d9177da50c3e0fa9 (patch)
tree9b799a8b1eab1b350780a676aefa0cd3ae28db09
parent662eac4d7bcad76b657c2621f9cd11c97e4d15d3 (diff)
downloadcli-1eb0eda96ace25d81fdf1f34d9177da50c3e0fa9.tar.gz
Fixes
-rwxr-xr-xcycle_pa_sinks2
-rwxr-xr-xgromo4
2 files changed, 3 insertions, 3 deletions
diff --git a/cycle_pa_sinks b/cycle_pa_sinks
index c9e8d31..aa48895 100755
--- a/cycle_pa_sinks
+++ b/cycle_pa_sinks
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
#
# Cycle between the current PulseAudio sinks.
# Based on https://askubuntu.com/a/740002
diff --git a/gromo b/gromo
index f5da8d9..22f9daf 100755
--- a/gromo
+++ b/gromo
@@ -171,6 +171,8 @@ pp_seconds() {
fi
}
+[ -f "$DING_FILE" ] || curl $DEFAULT_DING --create-dirs -so "$DING_FILE"
+
optspec="1hxltd:s:"
while getopts "$optspec" optchar; do
case "$optchar" in
@@ -216,8 +218,6 @@ fi
mkdir -p "$DATA_DIR" "$TODAY_DIR" "$(dirname "$STATE_FILE")"
-[ -f "$DING_FILE" ] || curl $DEFAULT_DING --create-dirs -so "$DING_FILE"
-
if [ -f "$STATE_FILE" ]; then
echo "Another instance is currently running; exiting (remove $STATE_FILE to override)"
exit 1