summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-02 23:48:39 +0200
committerGregor Kleen <pngwjpgh@users.noreply.github.com>2016-10-02 23:48:39 +0200
commitd2450c6d309ea296d0f74b1d72f71261254349e4 (patch)
tree200dba8fa137987e1d29bfdddf10f0e0968e0bbf
parent420c13955556d66fc80bb623747a14753b47b644 (diff)
downloadnixos-d2450c6d309ea296d0f74b1d72f71261254349e4.tar
nixos-d2450c6d309ea296d0f74b1d72f71261254349e4.tar.gz
nixos-d2450c6d309ea296d0f74b1d72f71261254349e4.tar.bz2
nixos-d2450c6d309ea296d0f74b1d72f71261254349e4.tar.xz
nixos-d2450c6d309ea296d0f74b1d72f71261254349e4.zip
fix syntax errors
-rw-r--r--hel/recv-media.nix2
1 files changed, 1 insertions, 1 deletions
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" ''
36 ${if notifyUser == null then "" else "#"}exit 0 36 ${if notifyUser == null then "" else "#"}exit 0
37 37
38 ( 38 (
39 summary=$(${if showTitle then ''ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//' '' else ''""'' fi) 39 summary=${if showTitle then ''$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^title=/!d; s/^title=//')'' else ''""'' fi}
40 [[ -z "''${summary}" ]] && summary=$(basename "$1") 40 [[ -z "''${summary}" ]] && summary=$(basename "$1")
41 printf "%s\n%s\n" "''${summary}" "" | notify-${notifyUser} -a recv-media || true 41 printf "%s\n%s\n" "''${summary}" "" | notify-${notifyUser} -a recv-media || true
42 ) || true 42 ) || true