aboutsummaryrefslogtreecommitdiff
path: root/ding
diff options
context:
space:
mode:
Diffstat (limited to 'ding')
-rwxr-xr-xding6
1 files changed, 5 insertions, 1 deletions
diff --git a/ding b/ding
index e89cf00..7270a35 100755
--- a/ding
+++ b/ding
@@ -14,4 +14,8 @@ ERROR_DING_URL=https://gramos.me/sounds/macos8/Quack.ogg
ERROR_DING=$CACHE_DIR/quack.ogg
[ -f "$ERROR_DING" ] || curl $ERROR_DING_URL --create-dirs -so "$ERROR_DING"
-"$@" && { mpv --no-terminal "$OK_DING" & } || { mpv --no-terminal "$ERROR_DING" & }
+if "$@"; then
+ mpv --no-terminal "$OK_DING" &
+else
+ mpv --no-terminal "$ERROR_DING" &
+fi