diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 16:42:14 +0200 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2016-10-02 16:42:14 +0200 |
commit | 8b7b36c7e17585e67b1c26a2b25d5b00763e048f (patch) | |
tree | 9e83df0c1547ae8b018d57aada62967cc41ffc27 /custom | |
parent | 9f4705648a25daf569fbcd38e9cf7bd14a0b875d (diff) | |
download | nixos-8b7b36c7e17585e67b1c26a2b25d5b00763e048f.tar nixos-8b7b36c7e17585e67b1c26a2b25d5b00763e048f.tar.gz nixos-8b7b36c7e17585e67b1c26a2b25d5b00763e048f.tar.bz2 nixos-8b7b36c7e17585e67b1c26a2b25d5b00763e048f.tar.xz nixos-8b7b36c7e17585e67b1c26a2b25d5b00763e048f.zip |
be exhaustive
Diffstat (limited to 'custom')
-rw-r--r-- | custom/notify-user.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/notify-user.nix b/custom/notify-user.nix index 16166f50..382580f3 100644 --- a/custom/notify-user.nix +++ b/custom/notify-user.nix | |||
@@ -29,9 +29,9 @@ stdenv.mkDerivation { | |||
29 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr | 29 | setEnv "DBUS_SESSION_BUS_ADDRESS" sessionAddr |
30 | lines <- lines <$> getContents | 30 | lines <- lines <$> getContents |
31 | case lines of | 31 | case lines of |
32 | [] -> exitWith ExitSuccess | ||
33 | ((trim -> app):(trim -> summary):(trim . unlines -> contents)) -> do | 32 | ((trim -> app):(trim -> summary):(trim . unlines -> contents)) -> do |
34 | Notify.display_ $ Notify.appName app <> Notify.summary summary <> Notify.body contents | 33 | Notify.display_ $ Notify.appName app <> Notify.summary summary <> Notify.body contents |
34 | _ -> exitWith ExitFailure | ||
35 | where | 35 | where |
36 | trim = dropWhileEnd isSpace . dropWhile isSpace | 36 | trim = dropWhileEnd isSpace . dropWhile isSpace |
37 | unQuote ('\''':xs) = init xs | 37 | unQuote ('\''':xs) = init xs |