From 7e249afde0127d8f9e11895d210799d9612e39bb Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 6 Apr 2017 17:53:54 +0200 Subject: Syntax --- hel/recv-media.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hel/recv-media.nix b/hel/recv-media.nix index 4ef93dcd..bb1fbb53 100644 --- a/hel/recv-media.nix +++ b/hel/recv-media.nix @@ -44,16 +44,16 @@ writeScriptBin "recv-media" '' fi touch -c -m -t "$2" "''${target}" || exit 1 ) || ( - if notify; then + if $notify; then printf "%s\n%s\n" $(basename "$1") "Failed to download" | notify-''${notifyUser} -a recv-media -u Critical fi ) - if notify; then + if $notify; then ( summary=${if showTitle then ''$(ffmpeg -i "''${target}" -f ffmetadata pipe:1 2>/dev/null | sed -r '/^\[CHAPTER\]$/q; /^title=/!d; s/^title=//')'' else ''""''} [[ -z "''${summary}" ]] && summary=$(basename "$1") - printf "%s\n%s\n" "''${summary}" "" | notify-''${notifyUser} -a recv-media || true + printf "%s\n%s\n" "''${summary}" "" | notify-''${notifyUser} -a recv-media || true ) || true fi '' -- cgit v1.2.3