For uninstall() strip package version specifier

This commit is contained in:
2024-11-04 12:44:38 -05:00
parent 7b924710b4
commit 413580f4ef

View File

@@ -1505,7 +1505,7 @@ uninstall() {
fi fi
echo "Uninstalling JRiver Media Center package" echo "Uninstalling JRiver Media Center package"
if "${PKG_REMOVE[@]}" "$MC_PKG"; then if "${PKG_REMOVE[@]}" "${MC_PKG%%=*}"; then # remove version specifier
echo "JRiver Media Center has been completely uninstalled" echo "JRiver Media Center has been completely uninstalled"
echo "To remove your MC library: rm -rf $HOME/.jriver" echo "To remove your MC library: rm -rf $HOME/.jriver"
elif [[ $? -eq 100 ]]; then elif [[ $? -eq 100 ]]; then