From 10e6311851fa9e4fb484d8f4723eec98a39e038f Mon Sep 17 00:00:00 2001 From: Christian Colglazier Date: Thu, 25 Feb 2021 07:33:12 -0500 Subject: [PATCH] Fixed DaVinci Resolve installer going from beta to release --- scripts/installers/resolve-install.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/installers/resolve-install.sh b/scripts/installers/resolve-install.sh index 2f68553..551fbe6 100644 --- a/scripts/installers/resolve-install.sh +++ b/scripts/installers/resolve-install.sh @@ -19,7 +19,9 @@ minor=$(echo $urlVersion | cut -d. -f2) micro=$(echo $urlVersion | cut -d. -f3) beta=$(echo $urlVersion | cut -d. -f4) -if [ -n "$beta" ]; then +if [ "$beta" == '99' ]; then + packageName="DaVinci_Resolve_Studio_${major}.${minor}" +elif [ -n "$beta" ]; then packageName="DaVinci_Resolve_Studio_${major}.${minor}b${beta}" else packageName="DaVinci_Resolve_Studio_${urlVersion}" @@ -69,6 +71,11 @@ downloadPackage resolve $zipUrl "${packageName}.zip" # Installing package sudo dnf install libxcrypt-compat unzip -o $packageName + +if [ ! -f "./*${packageName}*.run" ]; then + $packageName +fi + chmod +x ./*${packageName}*.run sudo ./*${packageName}*.run -i -y