summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2015-10-26 00:04:15 +0100
committermakefu <github@syntax-fehler.de>2015-10-26 00:17:48 +0100
commit526adba3c81d267266946e7fc96a4a3b51cab366 (patch)
treec998840f094e6481e45a4d7ace9e20ec1eaabc83 /krebs
parentcb1b101dfa2c8e0aa9a3ef0c64788912e0148085 (diff)
k 3 urlwatch: add verbose flag
Diffstat (limited to 'krebs')
-rw-r--r--krebs/3modules/urlwatch.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/krebs/3modules/urlwatch.nix b/krebs/3modules/urlwatch.nix
index 80d9f5e93..206bc5697 100644
--- a/krebs/3modules/urlwatch.nix
+++ b/krebs/3modules/urlwatch.nix
@@ -56,6 +56,13 @@ let
https://nixos.org/channels/nixos-unstable/git-revision
];
};
+ verbose = mkOption {
+ type = types.bool;
+ default = false;
+ description = ''
+ verbose output of urlwatch
+ '';
+ };
};
urlsFile = toFile "urls" (concatStringsSep "\n" cfg.urls);
@@ -106,7 +113,7 @@ let
cd /tmp
- urlwatch -e --urls="$urlsFile" > changes 2>&1 || :
+ urlwatch -e ${optionalString cfg.verbose "-v"} --urls="$urlsFile" > changes || :
if test -s changes; then
date=$(date -R)