diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2015-06-05 13:02:31 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2015-06-05 13:02:31 +0200 |
commit | 86816c9ed2dd681be1b6a85f16989c334d6197d5 (patch) | |
tree | f452ddb3e9bc0a849d57861ff0b1fdf3f37b42d1 /nix-script | |
parent | e5e903595b82d91cd46c5de82e81f0f954c87ba5 (diff) |
Remove config file foo
Diffstat (limited to 'nix-script')
-rwxr-xr-x | nix-script | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -15,7 +15,6 @@ usage() { $(basename $0) [options] <command> <commandoptions> -l | --list-commands List all available commands - -c | --config Use alternative configuration (rc) file -v Be verbose -h Show this help and exit @@ -26,7 +25,6 @@ EOS LIST_COMMANDS=0 VERBOSE=0 -CONFIGFILE=~/.nixscriptsrc stderr() { echo "[$(basename $0)]: $*" >&2 @@ -67,16 +65,6 @@ do shift_one_more ;; - "--config" ) - CONFIGFILE=$1 - shift_one_more - ;; - - "-c" ) - CONFIGFILE=$1 - shift_one_more - ;; - "-v" ) export VERBOSE=1 stdout "Verbose now" @@ -105,14 +93,6 @@ do esac done -if [ ! -f $CONFIGFILE ] -then - stdout "No config file: '$CONFIGFILE', won't override defaults" -else - stdout "Source config: '$CONFIGFILE'" - . $CONFIFILE -fi - if [ $LIST_COMMANDS -eq 1 ] then stdout "Listing commands" |