Skip to content

Commit

Permalink
Use yes
Browse files Browse the repository at this point in the history
Signed-off-by: Ethan Dye <[email protected]>
  • Loading branch information
ecdye committed Jul 30, 2024
1 parent cd4fd75 commit 05c959d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/openhab.bash
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ openhab_shell_interfaces() {
openhab_clean_cache() {
echo -n "$(timestamp) [openHABian] Cleaning the openHAB cache... "
if ! cond_redirect systemctl stop openhab.service; then echo "FAILED (stop service)"; return 1; fi
if ! cond_redirect openhab-cli clean-cache; then echo "FAILED (clean)"; return 1; fi
if ! cond_redirect yes | openhab-cli clean-cache; then echo "FAILED (clean)"; return 1; fi
if cond_redirect systemctl restart openhab.service; then echo "OK"; else echo "FAILED (restart service)"; return 1; fi
}

Expand Down

0 comments on commit 05c959d

Please sign in to comment.