mirror of
https://github.com/mrworf/plexupdate.git
synced 2025-08-20 13:23:21 -07:00
Merge pull request #9 from markglenn/master
Fix check for installed version with no install
This commit is contained in:
commit
bf6bf497ce
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ SKIP_DOWNLOAD="no"
|
||||||
# Installed version detection (only supported for deb based systems, feel free to submit rpm equivalent)
|
# Installed version detection (only supported for deb based systems, feel free to submit rpm equivalent)
|
||||||
if [ "${REDHAT}" != "yes" ]; then
|
if [ "${REDHAT}" != "yes" ]; then
|
||||||
INSTALLED_VERSION=$(dpkg-query -s plexmediaserver 2>/dev/null | grep -Po 'Version: \K.*')
|
INSTALLED_VERSION=$(dpkg-query -s plexmediaserver 2>/dev/null | grep -Po 'Version: \K.*')
|
||||||
if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" ]; then
|
if [[ $FILENAME == *$INSTALLED_VERSION* ]] && [ "${FORCE}" != "yes" ] && [ ! -z "${INSTALLED_VERSION}" ]; then
|
||||||
echo "Your OS reports the latest version of Plex ($INSTALLED_VERSION) is already installed. Use -f to force download."
|
echo "Your OS reports the latest version of Plex ($INSTALLED_VERSION) is already installed. Use -f to force download."
|
||||||
exit 5
|
exit 5
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue