diff options
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) |