pika-kernel-manager/data/scripts/modify_package.sh

12 lines
119 B
Bash
Raw Normal View History

2024-06-19 03:08:37 +02:00
#! /bin/bash
set -e
2024-08-31 04:10:09 +02:00
if dpkg -s "$1"
2024-06-19 03:08:37 +02:00
then
2024-08-31 04:10:09 +02:00
apt remove -y "$1"
apt autremove -y
2024-06-19 03:08:37 +02:00
else
2024-08-31 04:10:09 +02:00
apt install -y "$1"
2024-06-19 03:08:37 +02:00
fi
exit 0