mirror of
https://github.com/Retropex/raspiblitz.git
synced 2025-05-28 04:52:30 +02:00
allow more than one config, also complementing a base config (#3198)
This commit is contained in:
parent
1a8a6baca2
commit
24e0b40f50
@ -95,7 +95,10 @@ set -e
|
|||||||
export NODE_OPTIONS="--no-deprecation"
|
export NODE_OPTIONS="--no-deprecation"
|
||||||
|
|
||||||
# load config
|
# load config
|
||||||
set -a; source /mnt/hdd/app-data/stacking-sats-kraken/.env; set +a
|
env="/mnt/hdd/app-data/stacking-sats-kraken/.env"
|
||||||
|
set -a; . ${env}; set +a
|
||||||
|
# alternative config
|
||||||
|
test -f "${env}-"${2} && { set -a; . "${env}-"${2}; set +a; }
|
||||||
|
|
||||||
# switch directory
|
# switch directory
|
||||||
cd $(cd `dirname $0` && pwd)
|
cd $(cd `dirname $0` && pwd)
|
||||||
|
Loading…
Reference in New Issue
Block a user