Only try and remove package if it's installed

This commit is contained in:
TheSpad
2023-03-20 21:17:11 +00:00
parent 38ecbd5ed7
commit 825d6c0ac4
@@ -5,4 +5,6 @@
# init-mods-end depends on this script so that later init and services wait until this script exits
echo "*** Removing existing par2cmdline packages ***"
apk del --purge par2cmdline
if apk list --installed -q | grep par2cmdline &> /dev/null; then
apk del --purge -q par2cmdline
fi