diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-07-12 19:34:44 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-07-12 19:34:44 +0200 |
commit | 817ff1bb38fe0701b635d98e9be0e223f7db3773 (patch) | |
tree | 2f1aaed89798a8b6ca1a0d3071c68a10e9dc6507 /nix-script-switch.sh | |
parent | ac925c6f77b1248645e9784c15c48203877b77c7 (diff) |
Do include the hostname as default, but disable with -n
Diffstat (limited to 'nix-script-switch.sh')
-rwxr-xr-x | nix-script-switch.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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> Command for nixos-rebuild. See 'man nixos-rebuild' -w <path> 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) |