mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Abandoning all legacy shell support, per codefactor.
Requiring bash.
This commit is contained in:
parent
a07d6bde3f
commit
aa9eb77f4f
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue