From 817ff1bb38fe0701b635d98e9be0e223f7db3773 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 12 Jul 2015 19:34:44 +0200 Subject: Do include the hostname as default, but disable with -n --- nix-script-switch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nix-script-switch.sh') diff --git a/nix-script-switch.sh b/nix-script-switch.sh index 70a9b67..f2cc01f 100755 --- a/nix-script-switch.sh +++ b/nix-script-switch.sh @@ -13,7 +13,7 @@ usage() { -c Command for nixos-rebuild. See 'man nixos-rebuild' -w Path to your configuration git directory - -n Include hostname in tag name + -n DON'T include hostname in tag name -h Show this help and exit This command helps you rebuilding your system and keeping track @@ -47,7 +47,7 @@ COMMAND= ARGS= WD= TAG_NAME= -HOSTNAME="" +HOSTNAME="$(hostname)" while getopts "c:w:t:nh" OPTION do @@ -66,8 +66,8 @@ do ;; n) - HOSTNAME=$(hostname) - stdout "HOSTNAME = $HOSTNAME" + HOSTNAME="" + stdout "HOSTNAME disabled" ;; h) -- cgit v1.2.3