summarylogtreecommitdiffstats
path: root/qogir-gtk-theme.install
blob: 3899cdb5eb28f6c7510494b79d68429e9cc4a4fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
pre_remove() {
    INSTALL_OPTS="$(/usr/bin/grep \
        --extended-regexp \
        --max-count=1 \
        --line-regexp \
        --no-messages \
        --invert-match '^\s*$|#.+' \
        "/etc/qogir-gtk-theme/options.txt" || echo -n '--theme all --tweaks image square round --icon arch')"

    if [[ "$INSTALL_OPTS" ~= (-l|--libadwaita) ]]; then
        /usr/bin/qogir-gtk-theme/install.sh --uninstall --libadwaita
    fi
}