Explorar o código

Squash bug in getVersion

bryan %!s(int64=3) %!d(string=hai) anos
pai
achega
e5a1483f5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      installJRMC

+ 1 - 1
installJRMC

@@ -298,7 +298,7 @@ getVersion() {
     VERSION_SOURCE="containerized package manager"; then
         buildah rm "$cnt" &>/dev/null
     # Webscrape
-    elif installPackage wget && MCVERSION=$(wget -qO- "$boardurl" | grep -o "[0-9][0-9]\.[0-9]\.[0-9]\+" | head -n 1) &&
+    elif installPackage wget && debug here && MCVERSION=$(wget -qO- "$boardurl" | grep -o "[0-9][0-9]\.[0-9]\.[0-9]\+" | head -n 1) &&
     [[ ! "$MCVERSION" =~ ([0-9]+.[0-9]+.[0-9]+) ]]; then
         VERSION_SOURCE="webscrape"
     # Hardcoded