11 lines
99 B
Bash
11 lines
99 B
Bash
|
#! /bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
if rpm -q "$1"
|
||
|
then
|
||
|
dnf remove -y "$1"
|
||
|
else
|
||
|
dnf install -y "$1"
|
||
|
fi
|
||
|
exit 0
|