slapt-src: Handle --config=FILE option properly

This is a followup to commit 3a65be4a18.
master
Igor Murzov 2014-06-06 01:21:13 +04:00
parent 505481c8cc
commit 72207276a5
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@ _slapt_src()
__expand_tilde_by_ref config
break
fi
if [[ ${words[i]} == --config=?* ]]; then
config="${words[i]#*=}"
break
fi
done
[[ -r "$config" ]] || return