We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 477b989 commit 2a132b2Copy full SHA for 2a132b2
1 file changed
versionRules/makeFoamVersionHeader.py
@@ -1,4 +1,14 @@
1
-#! /usr/bin/env python
+#!/bin/sh
2
+""":"
3
+if command -v python >/dev/null 2>&1; then
4
+ exec python "$0" "$@"
5
+elif command -v python3 >/dev/null 2>&1; then
6
+ exec python3 "$0" "$@"
7
+else
8
+ echo "Error: neither python nor python3 was found in PATH" >&2
9
+ exit 127
10
+fi
11
+":"""
12
13
# This script processses $WM_PRJECT_VERSION and outputs the result to
14
# foamVersion4wmles.H
0 commit comments