From 5b74042932fa8f9184e68eadeb804531e3496c9e Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Sun, 25 Apr 2021 21:48:00 -0400 Subject: [PATCH] fix syntax --- homepage/zeldb.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/homepage/zeldb.sh b/homepage/zeldb.sh index 2ad6b38..ee245e3 100755 --- a/homepage/zeldb.sh +++ b/homepage/zeldb.sh @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/sh -x -die() { return 1 || exit 1 } +die() { return 1 || exit 1; } if ! which curl >/dev/null 2>&1; then printf "1n574ll curl, 5700p1d!\n" @@ -9,10 +9,8 @@ fi ZELDA="http://www.trinity.moe/zelda.wav" -if which aplay >/dev/null 2>&1; then - curl "$ZELDA" | aplay -elif ls /dev/dsp >/dev/null 2>&1; then - curl "$ZELDA" >/dev/dsp +if which aplay >/dev/null 2>&1; then curl "$ZELDA" | aplay +elif ls /dev/dsp >/dev/null 2>&1; then curl "$ZELDA" >/dev/dsp else printf "Unknown sound device. Sorry!\n" die