Skip to content

Commit

Permalink
Make commands only continue if prev was successful
Browse files Browse the repository at this point in the history
  • Loading branch information
davet2001 authored Oct 15, 2023
1 parent 7c128fb commit 93968d6
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,10 @@
},
"problemMatcher": []
},
{
"label": "Start Addon",
"type": "shell",
"command": "docker exec -it hassio_cli sh -c \"ha addons stop local_${input:addonName}; ha addons start local_${input:addonName}\"; sudo docker logs --follow addon_local_${input:addonName}",
"group": {
"kind": "test",
"isDefault": false
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [],
"runOptions": {
"reevaluateOnRerun": false
}
},
{
"label": "Rebuild and Start Addon",
"type": "shell",
"command": "docker exec -it hassio_cli sh -c \"ha addons rebuild local_${input:addonName}; ha addons start local_${input:addonName}\"; sudo docker logs --follow addon_local_${input:addonName}",
"command": "docker exec -it hassio_cli sh -c \"ha addons rebuild local_${input:addonName} && ha addons start local_${input:addonName}\" && sudo docker logs --follow addon_local_${input:addonName}",
"group": {
"kind": "test",
"isDefault": false
Expand Down

0 comments on commit 93968d6

Please sign in to comment.