File: preinst

package info (click to toggle)
vim-airline-themes 0%2Bgit.20180730-6e798f9-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 572 kB
  • sloc: sh: 41; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# preinst script for vim-airline

set -e

case "$1" in
    install|upgrade)
        if [ "$(vim-addons status | grep airline-themes | awk '{print $3}')" = "installed" ] ; then
                vim-addon-manager -w remove airline-themes
        fi
    ;;

    abort-upgrade)
    ;;

    *)
        echo "preinst called with unknown argument \`$1'" >&2
        exit 1
    ;;
esac

#DEBHELPER#

exit 0