aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-19 14:32:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-19 14:32:25 +1200
commitfe61ac08862be0b96860974ac016ac4517d4b8b8 (patch)
treedac45e423dcd36c0692092ec8868ec92413a8bdc
parentDon't bother checking for ls --color (diff)
downloaddotfiles-fe61ac08862be0b96860974ac016ac4517d4b8b8.tar.gz
dotfiles-fe61ac08862be0b96860974ac016ac4517d4b8b8.zip
Add missing NAME for getopts
-rw-r--r--bash/bashrc.d/vared.bash2
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