aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-14 22:41:44 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-14 23:12:55 +0100
commit1845331d052783417c7d105b9fa409c35b728dd8 (patch)
treed2367d8fcd4ae95b5e14995f9fc5494d96b2dcc5 /bin/phase-helpers.sh
parenteapply: Fix typo (diff)
downloadportage-1845331d052783417c7d105b9fa409c35b728dd8.tar.gz
portage-1845331d052783417c7d105b9fa409c35b728dd8.tar.bz2
portage-1845331d052783417c7d105b9fa409c35b728dd8.zip
eapply: Fix off-by-one error when parsing options
Fix off-by-one error that skipped the first path when processing options without a double-hyphen. Reviewed-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'bin/phase-helpers.sh')
-rw-r--r--bin/phase-helpers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/phase-helpers.sh b/bin/phase-helpers.sh
index 0f79fc175..afb85dabf 100644
--- a/bin/phase-helpers.sh
+++ b/bin/phase-helpers.sh
@@ -1020,7 +1020,7 @@ if ___eapi_has_eapply; then
for (( i = 1; i <= ${#@}; ++i )); do
if [[ ${@:i:1} != -* ]]; then
patch_options=( "${@:1:i-1}" )
- files=( "${@:i+1}" )
+ files=( "${@:i}" )
break
fi
done