mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-26 22:20:56 +00:00
14 lines
370 B
Bash
Executable File
14 lines
370 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
REL_SCRIPT_DIR="`dirname \"$0\"`"
|
|
SCRIPT_DIR="`( cd \"$REL_SCRIPT_DIR\" && pwd )`"
|
|
PROJECT_DIR="`( cd \"$SCRIPT_DIR/..\" && pwd )`"
|
|
PYTHON_ENV=python-dev
|
|
PYTHON_VERSION="`$PROJECT_DIR/build/$PYTHON_ENV/bin/python --version 2>&1`"
|
|
|
|
# only run the command on python3
|
|
if [ -z "${PYTHON_VERSION##Python 3.*}" ]; then
|
|
$SCRIPT_DIR/python-dev $@
|
|
fi
|
|
|