slackware: sbopkg: fix multiple arguments for '-f'

If '-f' option written several times then used only latest
This commit is contained in:
Sergey V 2011-01-06 05:32:26 +03:00
parent cb0a514b9f
commit 07edd33c9a

View File

@ -189,6 +189,7 @@ _sbopkg()
for (( i=${#words[@]}-1; i>0; i-- )); do for (( i=${#words[@]}-1; i>0; i-- )); do
if [[ ${words[i]} == '-f' ]]; then if [[ ${words[i]} == '-f' ]]; then
config="${words[i+1]}" config="${words[i+1]}"
break
fi fi
done done