summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-01-08 07:50:36 +0100
committerMatthias Beyer <mail@beyermatthias.de>2017-01-08 07:50:36 +0100
commitbb5138869056d18e1f0c3e3a6b01c698cc2bf3de (patch)
treeb418351e40a0e77f47b8817d5370c33c7dd2146a
parentb651e1fd17a2fda80dfc861231922b468180077b (diff)
Fix: Name of argument
-rwxr-xr-xnix-script-channel-update.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/nix-script-channel-update.sh b/nix-script-channel-update.sh
index 4ad8720..61504f1 100755
--- a/nix-script-channel-update.sh
+++ b/nix-script-channel-update.sh
@@ -5,12 +5,12 @@ source $(dirname ${BASH_SOURCE[0]})/nix-utils.sh
usage() {
cat <<EOS
- $(help_synopsis "channel" "update [-h] [-t <name>] [-w <cfgdir>] [-n]")
+ $(help_synopsis "channel" "update [-h] [-t <name>] [-w <cfgdir>] [-n] [-N]")
-t <name> | Name for the new tag, instead of nixos-<host>-channel-<num>
-n | Add channel name (from config) in the tag name, currently: $RC_CHANNEL_NAME
-w <cfgdir> | Alternative config dir, default: $RC_CONFIG
- -n | DON'T include hostname in tag name
+ -N | DON'T include hostname in tag name
-h | Show this help and exit
$(help_end)
@@ -22,7 +22,7 @@ ADD_CHANNEL_NAME=0
CONFIG=$RC_CONFIG
HOST="$(hostname)"
-while getopts "t:w:nh" OPTION
+while getopts "t:w:nNh" OPTION
do
case $OPTION in
t)
@@ -40,7 +40,7 @@ do
dbg "CONFIG = $CONFIG"
;;
- n)
+ N)
HOST=""
dbg "HOST = $HOST"
;;