From aa9eb77f4f3b2f8a2911f0772f96a290ae9ac32c Mon Sep 17 00:00:00 2001 From: Paul Kronenwetter Date: Fri, 24 Jun 2022 16:19:51 -0400 Subject: [PATCH] Abandoning all legacy shell support, per codefactor. Requiring bash. --- create_node_env.sh | 8 ++++---- create_python_env.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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