Update when multiple versions of Dragonframe are installed

This commit is contained in:
Christian Colglazier 2021-07-14 20:59:31 -04:00
parent a536ee7d47
commit 34a24b2d17

View File

@ -5,7 +5,7 @@
# Import library
source $(dirname ${BASH_SOURCE[0]})/install-lib.sh
dragonframe=$(searchProgramInstalled dragonframe)
dragonframe=$(searchProgramInstalled dragonframe | awk 'END {print $(NF-2), $(NF-1), $NF}')
dragonframeVersion=$(echo $dragonframe | awk '{print $2;}' | filterVersion)
url=$(curl -s https://www.dragonframe.com/downloads/ | grep .rpm | grep downloadButton | grep -Po '(?<=href=")[^"]*.rpm')
urlVersion=$(echo $url | awk -F "-" '{ print $2 }')