Sophie

Sophie

distrib > PLD > ra > i686 > media > dist > by-pkgid > 6b25e265316ebe0ad9fd5eea1545f4bd > scriptlet

bash-completion-20021026-1.noarch.rpm

POSTIN

/bin/sh
if ! grep -q '\[ -f '/etc'/bash_completion \]' \
	/etc/bashrc 2>/dev/null; then
		cat <<'EOF' >> /etc/bashrc
# START bash completion -- do not remove this line
bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.}
if [ "$PS1" ] && [ "$bmajor" -eq 2 ] && [ "$bminor" '>' 04 ] \
	&& [ -f /etc/bash_completion ]; then	# interactive shell
	# Source completion code
        . /etc/bash_completion
fi
unset bash bmajor bminor
# END bash completion -- do not remove this line
EOF
fi

POSTUN

/bin/sh
if [ "$1" -eq 0 ]; then
	sed -e '/^# START bash completion/,/^# END bash completion/d' /etc/bashrc \
		> /etc/bashrc.tmp
	mv -f /etc/bashrc.tmp /etc/bashrc
fi
chmod 644 /etc/bashrc