fixed '.env' file sourcing
This commit is contained in:
parent
28d8e3994f
commit
295daab9ab
2 changed files with 8 additions and 8 deletions
|
@ -7,11 +7,11 @@ set -e
|
|||
|
||||
[[ "$EUID" != "0" ]] && printf "error: permission denied\n" && exit 1
|
||||
|
||||
source "./config.env"
|
||||
. "$(dirname $(realpath $0))/config.env"
|
||||
|
||||
printf "${FONT_BOLD}>>> starting pedalboard...${FONT_NORMAL}\n"
|
||||
|
||||
source "/usr/local/pisound/scripts/common/common.sh"
|
||||
. "/usr/local/pisound/scripts/common/common.sh"
|
||||
|
||||
flash_leds 10
|
||||
sleep 0.25
|
||||
|
|
|
@ -7,17 +7,17 @@ set -e
|
|||
|
||||
[[ "$EUID" != "0" ]] && printf "error: permission denied\n" && exit 1
|
||||
|
||||
source "./config.env"
|
||||
. "$(dirname $(realpath $0))/config.env"
|
||||
|
||||
printf "${FONT_BOLD}> stopping pedalboard...${FONT_NORMAL}\n"
|
||||
printf "${FONT_BOLD}>>> stopping pedalboard...${FONT_NORMAL}\n"
|
||||
|
||||
source "/usr/local/pisound/scripts/common/common.sh"
|
||||
. "/usr/local/pisound/scripts/common/common.sh"
|
||||
|
||||
flash_leds 10
|
||||
sleep 0.25
|
||||
flash_leds 10
|
||||
|
||||
printf ">>> stopping pbc..."
|
||||
printf "> stopping pbc..."
|
||||
systemctl stop pbc &> /dev/null
|
||||
printf " done!\n"
|
||||
|
||||
|
|
Loading…
Reference in a new issue