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

11 lines
99 B
Bash
Raw Normal View History

2024-06-19 03:08:37 +02:00
#! /bin/bash
set -e
if rpm -q "$1"
then
dnf remove -y "$1"
else
dnf install -y "$1"
fi
exit 0