aboutsummaryrefslogtreecommitdiff
path: root/ding
diff options
context:
space:
mode:
authorGuillermo Ramos2023-04-23 18:20:55 +0200
committerGuillermo Ramos2023-04-23 18:20:58 +0200
commit0a0c66001b8a14affd41b0fe7435a1a91fac6038 (patch)
treec136bd96a04adf7d1723e4eb3ac5d5768a108829 /ding
parent5b13777e6d03665d857342c47489e63a67e01f48 (diff)
downloadcli-0a0c66001b8a14affd41b0fe7435a1a91fac6038.tar.gz
Fix ding
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