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

12 lines
140 B
Bash
Raw Normal View History

2024-06-19 03:08:37 +02:00
#! /bin/bash
set -e
2024-08-31 08:45:15 +02:00
if [[ "$1" == "install" ]]
2024-06-19 03:08:37 +02:00
then
2024-08-31 08:45:15 +02:00
apt install -y "${@:2}"
2024-06-19 03:08:37 +02:00
else
2024-08-31 08:45:15 +02:00
apt remove -y "${@:2}"
apt autoremove -y
2024-06-19 03:08:37 +02:00
fi
exit 0