From fe61ac08862be0b96860974ac016ac4517d4b8b8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 19 Jun 2015 14:32:25 +1200 Subject: Add missing NAME for getopts --- bash/bashrc.d/vared.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d/vared.bash') 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 -- cgit v1.2.3