Skip to content

Commit c3b2fa7

Browse files
openhabianopenhabian
authored andcommitted
fix bats second try
Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch>
1 parent b7cb4c8 commit c3b2fa7

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

functions/packages.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,8 +939,8 @@ install_grott() {
939939
fi
940940
local installType="$1"
941941

942-
# In non- interactive mode, skip setup unless openhabian.config grottSetupEnabled == true
943-
if [[ -z "$INTERACTIVE" ]] && { [[ -z "$grottSetupEnabled" ]] || [[ "$grottSetupEnabled" != "true" ]]; }; then
942+
# Skip setup if in un-attended mode and openhabian.config grottSetupEnabled is missing or not true
943+
if [[ -n "$UNATTENDED" ]] && { [[ -z "$grottSetupEnabled" ]] || [[ "$grottSetupEnabled" != "true" ]]; }; then
944944
echo "$(timestamp) [openHABian] Setup Grott Proxy... SKIPPED (setup not enabled)"
945945
return 0
946946
fi

functions/packages.bats

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,6 @@ teardown_file() {
6767
}
6868

6969
@test "destructive-grott_install" {
70-
# Force unattended install
71-
grottSetupEnabled=true
72-
7370
## Confirm Grott Proxy install completes without error
7471
echo -e "# ${COL_CYAN}$(timestamp) [openHABian] Grott Proxy installation starting...${COL_DEF}" >&3
7572
run install_grott "install" 3>&-

0 commit comments

Comments
 (0)