Browse Source

Fix downloading Wine 10.0 source code

Kron4ek 7 months ago
parent
commit
90a837e557
1 changed files with 3 additions and 3 deletions
  1. 3 3
      build_wine.sh

+ 3 - 3
build_wine.sh

@@ -174,10 +174,10 @@ fi
 
 # Stable and Development versions have a different source code location
 # Determine if the chosen version is stable or development
-if [ "$(echo "$WINE_VERSION" | cut -c3)" = "0" ]; then
-	WINE_URL_VERSION=$(echo "$WINE_VERSION" | cut -c1).0
+if [ "$(echo "$WINE_VERSION" | cut -d "." -f2 | cut -c1)" = "0" ]; then
+	WINE_URL_VERSION=$(echo "$WINE_VERSION" | cut -d "." -f 1).0
 else
-	WINE_URL_VERSION=$(echo "$WINE_VERSION" | cut -c1).x
+	WINE_URL_VERSION=$(echo "$WINE_VERSION" | cut --d "." -f 1).x
 fi
 
 rm -rf "${BUILD_DIR}"