summaryrefslogtreecommitdiff
path: root/shells/bash-completion/files/patch-contrib_portupgrade
diff options
context:
space:
mode:
Diffstat (limited to 'shells/bash-completion/files/patch-contrib_portupgrade')
-rw-r--r--shells/bash-completion/files/patch-contrib_portupgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/shells/bash-completion/files/patch-contrib_portupgrade b/shells/bash-completion/files/patch-contrib_portupgrade
index f03ddce85f7e..d162d0148381 100644
--- a/shells/bash-completion/files/patch-contrib_portupgrade
+++ b/shells/bash-completion/files/patch-contrib_portupgrade
@@ -9,7 +9,7 @@
- # Then INDEX if INDEX-5 does not exist or system is not FreeBSD 5.x
- [[ "${OSTYPE%.*}" == freebsd5 && -f $indexfile ]] ||
- indexfile=$portsdir/INDEX
-+ indexfile="$(portsdir)/INDEX-${OSTYPE:8:1}"
++ indexfile="$(portsdir)/INDEX-${OSTYPE:7:1}"
[[ "$prev" == -l || "$prev" == -L || "$prev" == -o ]] && return 0