12 lines
119 B
Bash
Executable File
12 lines
119 B
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
if dpkg -s "$1"
|
|
then
|
|
apt remove -y "$1"
|
|
apt autremove -y
|
|
else
|
|
apt install -y "$1"
|
|
fi
|
|
exit 0 |