Quiet output and remove /opt/Synergy

This commit is contained in:
gmpinder
2023-06-04 22:37:39 -04:00
parent f34e3f0efb
commit b1a5a3f6f3

View File

@@ -15,9 +15,19 @@ url="https://rc.symless.com/synergy3/${version}/${base_name}-${version}.rpm"
# Define file name # Define file name
file="/tmp/${base_name}-${version}.rpm" file="/tmp/${base_name}-${version}.rpm"
# Directory that we need to remove before installation
dir="/opt/Synergy"
# Download file # Download file
echo "Downloading file..." echo "Downloading file..."
wget -O "$file" "$url" wget -Oq "$file" "$url"
# Check if directory exists
if [ -d "$dir" ]
then
echo "Removing existing directory..."
rm -rf "$dir"
fi
# Install the package using rpm # Install the package using rpm
echo "Installing package..." echo "Installing package..."