Refresh completion script

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2016-06-09 13:36:23 -07:00
parent 4b522b352a
commit d167770af6
+1 -1
View File
@@ -47,7 +47,7 @@ _swupd()
index=COMP_CWORD-1
while [[ " swupd $mainsubcommands " != *" $prev "* ]]; do
((index--))
prev="${COMP_WORDS[$index]}"
prev=`basename "${COMP_WORDS[$index]}"`
done
#Now need to calculate the index of the subcommand in order to
#retreive options