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

12 lines
136 B
Bash
Raw Normal View History

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