fgerlits commented on code in PR #9429:
URL: https://github.com/apache/nifi/pull/9429#discussion_r1811095650


##########
mvnw:
##########
@@ -105,6 +106,21 @@ trim() {
   printf "%s" "${1}" | tr -d '[:space:]'
 }
 
+# find the Python executable
+if [ -z "${PYTHON_CMD-}" ]; then
+  for PYTHON_PATH in /usr/bin/python3 /usr/local/bin/python3 /usr/bin/python 
/usr/local/bin/python; do
+    if [ -x "${PYTHON_PATH}" ]; then
+      export PYTHON_CMD="${PYTHON_PATH}"
+      break
+    fi
+  done
+
+  if [ -z "${PYTHON_CMD-}" ]; then
+    echo "Python executable not found; please set PYTHON_CMD" >&2
+    return 1
+  fi
+fi

Review Comment:
   fixed in 7af4f4ce001d5f3c6fb22b208c10535d109d3fc3



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to