swaync-service-dispatcher: simplify quoting
This commit is contained in:
@@ -17,7 +17,12 @@ log() {
|
|||||||
checkActive() {
|
checkActive() {
|
||||||
# simulate a dry-run start. if no actions would be performed, then the service is up.
|
# simulate a dry-run start. if no actions would be performed, then the service is up.
|
||||||
# alternative is s6-svstat, but that doesn't support oneshots
|
# alternative is s6-svstat, but that doesn't support oneshots
|
||||||
test -z "$(s6-rc -n 0 -b start "$service")" && echo true || echo false
|
local s6Output=$(s6-rc -n 0 -b start "$service")
|
||||||
|
if [ -z "$s6Output" ]; then
|
||||||
|
echo true
|
||||||
|
else
|
||||||
|
echo false
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
startService() {
|
startService() {
|
||||||
log "startService: $service"
|
log "startService: $service"
|
||||||
|
Reference in New Issue
Block a user