summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2015-06-06 10:29:56 +0200
committerMatthias Beyer <mail@beyermatthias.de>2015-06-06 11:09:08 +0200
commit41f8794886d8685d21e3fdc0cb62320d30e9b742 (patch)
tree06e643354fb37cb8be9a3dc62def30a8d4e79122
parentc16b3350c7ea4920e44567d4b67bc8614a956f39 (diff)
Add util: explain()
-rw-r--r--nix-utils.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/nix-utils.sh b/nix-utils.sh
index 49b7b29..3ff20df 100644
--- a/nix-utils.sh
+++ b/nix-utils.sh
@@ -29,6 +29,11 @@ help_end() {
echo ""
}
+explain() {
+ stdout "$*"
+ $*
+}
+
grep_generation() {
$* | grep current | cut -d " " -f 2
}