mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02: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
|
||||
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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue