From d2450c6d309ea296d0f74b1d72f71261254349e4 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 2 Oct 2016 23:48:39 +0200 Subject: fix syntax errors --- hel/recv-media.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hel') diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 717a9072..e3189f79 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