diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-19 14:32:25 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-19 14:32:25 +1200 |
commit | fe61ac08862be0b96860974ac016ac4517d4b8b8 (patch) | |
tree | dac45e423dcd36c0692092ec8868ec92413a8bdc /bash/bashrc.d/vared.bash | |
parent | Don't bother checking for ls --color (diff) | |
download | dotfiles-fe61ac08862be0b96860974ac016ac4517d4b8b8.tar.gz dotfiles-fe61ac08862be0b96860974ac016ac4517d4b8b8.zip |
Add missing NAME for getopts
Diffstat (limited to 'bash/bashrc.d/vared.bash')
-rw-r--r-- | bash/bashrc.d/vared.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/vared.bash b/bash/bashrc.d/vared.bash index 40eeee21..cdbba9a8 100644 --- a/bash/bashrc.d/vared.bash +++ b/bash/bashrc.d/vared.bash @@ -7,7 +7,7 @@ fi vared() { local opt prompt local OPTERR OPTIND OPTARG - while getopts 'p:' ; do + while getopts 'p:' opt ; do case $opt in p) prompt=$OPTARG |