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
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
@ -47,4 +47,4 @@ printf " done!\n"
flash_leds 100
printf "${FONT_BOLD}>>> started pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n"
printf "${FONT_BOLD}>>> started pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n"

View file

@ -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"
@ -33,4 +33,4 @@ printf "> " && "/etc/velvettear/scripts/cpu-governor.sh" "powersave"
flash_leds 100
printf "${FONT_BOLD}>>> stopped pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n"
printf "${FONT_BOLD}>>> stopped pedalboard after "$SECONDS" seconds${FONT_NORMAL}\n"