From 9bc77527dced88d3841ca1a399927f1241c20a60 Mon Sep 17 00:00:00 2001 From: sergioro <25378688+sergioro9@users.noreply.github.com> Date: Mon, 9 Dec 2019 22:35:35 -0700 Subject: [PATCH] play christmas song if ffplay is installed --- tree-EN.sh | 9 +++++++++ tree-ES.sh | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/tree-EN.sh b/tree-EN.sh index 54f1186..7bbb7c7 100755 --- a/tree-EN.sh +++ b/tree-EN.sh @@ -9,6 +9,15 @@ est=$((c-2)) color=0 tput setaf 2; tput bold +# Song +if command -v ffplay &>/dev/null ; then + { + song=https://web.archive.org/web/20191210052304/http://0x0.st/zUun.mp3 + wget -qP /tmp "$song" + ffplay -autoexit -nodisp -loglevel quiet "/tmp/$(basename "$song")" + } & +fi + # Tree for ((i=1; i<20; i+=2)) { diff --git a/tree-ES.sh b/tree-ES.sh index 21f2fe0..5abc71e 100755 --- a/tree-ES.sh +++ b/tree-ES.sh @@ -9,6 +9,15 @@ est=$((c-2)) color=0 tput setaf 2; tput bold +# Song +if command -v ffplay &>/dev/null ; then + { + song=https://web.archive.org/web/20191210052304/http://0x0.st/zUun.mp3 + wget -qP /tmp "$song" + ffplay -autoexit -nodisp -loglevel quiet "/tmp/$(basename "$song")" + } & +fi + # Tree for ((i=1; i<20; i+=2)) {