summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2017-01-12 16:56:33 +0100
committerGitHub <noreply@github.com>2017-01-12 16:56:33 +0100
commit7f3642a828726e1570b1a9975979e058753c6969 (patch)
treebdbeb5888d951d807fec939c8f8b054515a3571d
parent0a4d85925a80bf87f8dd1d3bb4726a6ec996f556 (diff)
parentbb5138869056d18e1f0c3e3a6b01c698cc2bf3de (diff)
Merge pull request #125 from matthiasbeyer/channel-update-arg-name-fix
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"
;;