Abandoning all legacy shell support, per codefactor.

Requiring bash.
This commit is contained in:
Paul Kronenwetter 2022-06-24 16:19:51 -04:00
parent a07d6bde3f
commit aa9eb77f4f
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env bash
if [ ! -d "gui" ]; then if [ ! -d "gui" ]; then
echo "Error: Run this script from the main FreeDATA directory." echo "Error: Run this script from the main FreeDATA directory."
@ -11,10 +11,10 @@ cd gui
# Common variables # Common variables
OLDPATH=${PATH} OLDPATH=${PATH}
PATH=/usr/bin:/bin:/usr/local/bin PATH=/usr/bin:/bin:/usr/local/bin
NPM=`which npm` NPM=$(which npm)
PATH=${OLDPATH} PATH=${OLDPATH}
VENVDIR="`pwd`/node_modules" VENVDIR="$(pwd)/node_modules"
PATH_ADDITIONS="`pwd`/node_modules/bin:`pwd`/node_modules/.bin" PATH_ADDITIONS="$(pwd)/node_modules/bin:$(pwd)/node_modules/.bin"
# Verify NPM exists. # Verify NPM exists.

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh #!/usr/bin/env bash
if [ ! -d "tnc" ]; then if [ ! -d "tnc" ]; then
echo "Error: Run this script from the main FreeDATA directory." echo "Error: Run this script from the main FreeDATA directory."
@ -6,7 +6,7 @@ if [ ! -d "tnc" ]; then
fi fi
# Common variables # Common variables
VENVDIR="`pwd`/.venv" VENVDIR="$(pwd)/.venv"
# Choose an appropriate python interpreter # Choose an appropriate python interpreter
CHOSEN=/bin/python3 CHOSEN=/bin/python3