1
0
Fork 0
powerline/debian/powerline.postinst
Daniel Baumann 4e7b24e893
Adding debian version 2.8.4-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 14:32:14 +02:00

38 lines
574 B
Bash

#!/bin/sh
set -e
case "${1}" in
configure)
. /usr/share/debconf/confmodule
db_get powerline/enable
POWERLINE_ENABLE="${RET}" # boolean
db_stop
rm -f /etc/profile.d/zz-powerline.sh
for ENABLE in $(echo ${POWERLINE_ENABLE} | sed -e 's|,| |g')
do
case "${ENABLE}" in
bash)
ln -sf /usr/share/powerline/integrations/powerline.sh /etc/profile.d/zz-powerline.sh
;;
esac
done
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0