iop: add ssh_upgrade completion of -f option.

Now you can select the file as a normal bash completion.
This commit is contained in:
Kenneth Johansson 2019-01-11 16:46:40 +01:00
parent 2830ec29b6
commit 227f258789

View file

@ -76,7 +76,13 @@ _iop()
fi
return 0
;;
ssh_upgrade)
if [ "$prev" == "-f" ] ; then
_filedir
else
COMPREPLY=( $(compgen -W "-f -t -i -n -x -b" -- ${cur}) )
fi
;;
*)
# No arguments or arguments not supported yet
;;