Skip to content

Commit 6ad1401

Browse files
SYS-8273 space syntax
1 parent db01fc9 commit 6ad1401

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

main/commit-msg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ is_python3() {
88
case "$OSTYPE" in
99
msys*|mingw*|cygwin*|win32*)
1010
echo "Running ${me} on Windows"
11-
if command -v python3 >/dev/null 2>&1 && is_python3 python3; then
11+
if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
1212
PYTHON_EXECUTABLE=(python3)
13-
elif command -v py >/dev/null 2>&1 && py -3 -c 'import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' >/dev/null 2>&1; then
13+
elif command -v py > /dev/null 2>&1 && py -3 -c 'import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1; then
1414
PYTHON_EXECUTABLE=(py -3)
15-
elif command -v python >/dev/null 2>&1 && is_python3 python; then
15+
elif command -v python > /dev/null 2>&1 && is_python3 python; then
1616
PYTHON_EXECUTABLE=(python)
1717
else
1818
echo "Error: Python not found or not runnable"
@@ -21,9 +21,9 @@ case "$OSTYPE" in
2121
;;
2222
*)
2323
echo "Running ${me} on linux / mac / unix"
24-
if command -v python3 >/dev/null 2>&1 && is_python3 python3; then
24+
if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
2525
PYTHON_EXECUTABLE=(python3)
26-
elif command -v python >/dev/null 2>&1 && is_python3 python; then
26+
elif command -v python > /dev/null 2>&1 && is_python3 python; then
2727
PYTHON_EXECUTABLE=(python)
2828
else
2929
echo "Error: Python not found or not runnable"

main/pre-commit

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ is_python3() {
88
case "$OSTYPE" in
99
msys*|mingw*|cygwin*|win32*)
1010
echo "Running ${me} on Windows"
11-
if command -v python3 >/dev/null 2>&1 && is_python3 python3; then
11+
if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
1212
PYTHON_EXECUTABLE=(python3)
13-
elif command -v py >/dev/null 2>&1 && py -3 -c 'import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' >/dev/null 2>&1; then
13+
elif command -v py > /dev/null 2>&1 && py -3 -c 'import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1; then
1414
PYTHON_EXECUTABLE=(py -3)
15-
elif command -v python >/dev/null 2>&1 && is_python3 python; then
15+
elif command -v python > /dev/null 2>&1 && is_python3 python; then
1616
PYTHON_EXECUTABLE=(python)
1717
else
1818
echo "Error: Python not found or not runnable"
@@ -21,9 +21,9 @@ case "$OSTYPE" in
2121
;;
2222
*)
2323
echo "Running ${me} on linux / mac / unix"
24-
if command -v python3 >/dev/null 2>&1 && is_python3 python3; then
24+
if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
2525
PYTHON_EXECUTABLE=(python3)
26-
elif command -v python >/dev/null 2>&1 && is_python3 python; then
26+
elif command -v python > /dev/null 2>&1 && is_python3 python; then
2727
PYTHON_EXECUTABLE=(python)
2828
else
2929
echo "Error: Python not found or not runnable"

main/pre-merge-commit

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ is_python3() {
88
case "$OSTYPE" in
99
msys*|mingw*|cygwin*|win32*)
1010
echo "Running ${me} on Windows"
11-
if command -v python3 >/dev/null 2>&1 && is_python3 python3; then
11+
if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
1212
PYTHON_EXECUTABLE=(python3)
13-
elif command -v py >/dev/null 2>&1 && py -3 -c 'import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' >/dev/null 2>&1; then
13+
elif command -v py > /dev/null 2>&1 && py -3 -c 'import sys; sys.exit(0 if sys.version_info[0] == 3 else 1)' > /dev/null 2>&1; then
1414
PYTHON_EXECUTABLE=(py -3)
15-
elif command -v python >/dev/null 2>&1 && is_python3 python; then
15+
elif command -v python > /dev/null 2>&1 && is_python3 python; then
1616
PYTHON_EXECUTABLE=(python)
1717
else
1818
echo "Error: Python not found or not runnable"
@@ -21,9 +21,9 @@ case "$OSTYPE" in
2121
;;
2222
*)
2323
echo "Running ${me} on linux / mac / unix"
24-
if command -v python3 >/dev/null 2>&1 && is_python3 python3; then
24+
if command -v python3 > /dev/null 2>&1 && is_python3 python3; then
2525
PYTHON_EXECUTABLE=(python3)
26-
elif command -v python >/dev/null 2>&1 && is_python3 python; then
26+
elif command -v python > /dev/null 2>&1 && is_python3 python; then
2727
PYTHON_EXECUTABLE=(python)
2828
else
2929
echo "Error: Python not found or not runnable"

0 commit comments

Comments
 (0)