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

This is a followup to commit 3a65be4a18.
This commit is contained in:
Igor Murzov 2014-06-06 01:21:13 +04:00
parent 505481c8cc
commit 72207276a5

View File

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