From 420c13955556d66fc80bb623747a14753b47b644 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 2 Oct 2016 23:48:12 +0200 Subject: syntax weirdness --- hel/recv-media.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 5a9a8505..717a9072 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -36,7 +36,7 @@ writeScriptBin "recv-media" '' ${if notifyUser == null then "" else "#"}exit 0 ( - summary=$(${if showTitle then ''ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//''' else ''""'' fi) + summary=$(${if showTitle then ''ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//' '' else ''""'' fi) [[ -z "''${summary}" ]] && summary=$(basename "$1") printf "%s\n%s\n" "''${summary}" "" | notify-${notifyUser} -a recv-media || true ) || true -- cgit v1.2.3