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
|
||||
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue