소스 검색

Fix downloading Wine 10.0 source code

Kron4ek 7 달 전
부모
커밋
90a837e557
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  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}"