mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-10-03 23:38:25 +00:00
Refresh completion script
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user