From d167770af65aad5274b2db50b1fa0a00cee9aed2 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Thu, 9 Jun 2016 13:36:08 -0700 Subject: [PATCH] Refresh completion script Signed-off-by: Patrick McCarty --- swupd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swupd.bash b/swupd.bash index 4008fd79..7ad2139a 100644 --- a/swupd.bash +++ b/swupd.bash @@ -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