diff --git a/create_node_env.sh b/create_node_env.sh index 42afec15..0883786c 100755 --- a/create_node_env.sh +++ b/create_node_env.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash if [ ! -d "gui" ]; then echo "Error: Run this script from the main FreeDATA directory." @@ -11,10 +11,10 @@ cd gui # Common variables OLDPATH=${PATH} PATH=/usr/bin:/bin:/usr/local/bin -NPM=`which npm` +NPM=$(which npm) PATH=${OLDPATH} -VENVDIR="`pwd`/node_modules" -PATH_ADDITIONS="`pwd`/node_modules/bin:`pwd`/node_modules/.bin" +VENVDIR="$(pwd)/node_modules" +PATH_ADDITIONS="$(pwd)/node_modules/bin:$(pwd)/node_modules/.bin" # Verify NPM exists. diff --git a/create_python_env.sh b/create_python_env.sh index d35c58d6..e6b1f66b 100755 --- a/create_python_env.sh +++ b/create_python_env.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash if [ ! -d "tnc" ]; then echo "Error: Run this script from the main FreeDATA directory." @@ -6,7 +6,7 @@ if [ ! -d "tnc" ]; then fi # Common variables -VENVDIR="`pwd`/.venv" +VENVDIR="$(pwd)/.venv" # Choose an appropriate python interpreter CHOSEN=/bin/python3