fixed '.env' file sourcing

This commit is contained in:
Daniel Sommer 2022-03-25 15:54:55 +01:00
parent 28d8e3994f
commit 295daab9ab
2 changed files with 8 additions and 8 deletions

View file

@ -7,11 +7,11 @@ set -e
[[ "$EUID" != "0" ]] && printf "error: permission denied\n" && exit 1 [[ "$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" 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 flash_leds 10
sleep 0.25 sleep 0.25

View file

@ -7,17 +7,17 @@ set -e
[[ "$EUID" != "0" ]] && printf "error: permission denied\n" && exit 1 [[ "$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 flash_leds 10
sleep 0.25 sleep 0.25
flash_leds 10 flash_leds 10
printf ">>> stopping pbc..." printf "> stopping pbc..."
systemctl stop pbc &> /dev/null systemctl stop pbc &> /dev/null
printf " done!\n" printf " done!\n"