-
Notifications
You must be signed in to change notification settings - Fork 0
/
run
executable file
·27 lines (21 loc) · 845 Bytes
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#Note that we assume that we are running from the directory that where
#everything is located. If you want to move this script, set the $SCRIPT_DIR
#variable some other way
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $SCRIPT_DIR
AUTO_CFG="$SCRIPT_DIR/current.config"
if [ "" == "$NBMN_CONFIG" ]; then
if [ -f "$AUTO_CFG" ]; then
echo "NBNM_CONFIG not defined, but found auto config file name"
echo "Setting to $AUTO_CFG"
export NBMN_CONFIG="$AUTO_CFG"
else
echo "NOTE! NBMN_CONFIG is not defined and NO auto .config"
echo " ... ($AUTO_CFG) was NOT found ...."
echo "Only the default values in $SCRIPT_DIR/default.config"
echo "will be used by nbnm"
fi
fi
PATH="${SCRIPT_DIR}/../.local/bin:${PATH}"
pipenv run python $SCRIPT_DIR/main.py