mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Refactor shell script syntax and consistency
- Add a missing space for styling - Replace legacy "\`...\`" with `$(...)` - Quote variable to prevent word splitting - Use builtin `command -v` instead of non-standard `which` - Add two missing `>&2` redirection for error/warning message
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname $0)"/..
|
||||
cd "$(dirname "$0")"/..
|
||||
ROOT=$(pwd)
|
||||
|
||||
if [ -z "$VENV_NAME" ]; then
|
||||
@@ -13,9 +13,9 @@ fi
|
||||
|
||||
if [ ! -d "$VENV_NAME" ]; then
|
||||
if [ -z "$VENV_PYTHON" ]; then
|
||||
VENV_PYTHON=`which python`
|
||||
VENV_PYTHON=$(command -v python)
|
||||
fi
|
||||
virtualenv --python=$VENV_PYTHON $VENV_NAME
|
||||
virtualenv --python="$VENV_PYTHON" "$VENV_NAME"
|
||||
fi
|
||||
. "$VENV_NAME/bin/activate"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user