Skip to content

Commit

Permalink
Fix quoting
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 ac93a19 commit 23c92b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/openhab.bash
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ openhab_shell_interfaces() {
##
openhab_clean_cache() {
echo -n "$(timestamp) [openHABian] Cleaning the openHAB cache... "
if ! cond_redirect systemctl stop "${ohPkgName}".service; then echo "FAILED (stop service)"; return 1; fi
if ! cond_redirect systemctl stop ${ohPkgName}.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 systemctl restart "${ohPkgName}".service; then echo "OK"; else echo "FAILED (restart service)"; return 1; fi
if cond_redirect systemctl restart ${ohPkgName}.service; then echo "OK"; else echo "FAILED (restart service)"; return 1; fi
}

## Function to download and install special vim syntax for openHAB files.
Expand Down

0 comments on commit 23c92b0

Please sign in to comment.