mirror of
https://gitlab.com/psuapp/psu.git
synced 2024-08-30 18:12:34 +00:00
Fix psu tasks:healthy action output
when an error occurs
This commit is contained in:
parent
54b0f3854a
commit
457aba0687
@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Running concurrently `psu` commands should work now, by creating unique temporary file names
|
- Running concurrently `psu` commands should work now, by creating unique temporary file names
|
||||||
|
- Fix `psu tasks:healthy` action output, when an error occurs
|
||||||
|
|
||||||
## [1.2.0] - 2021-09-14
|
## [1.2.0] - 2021-09-14
|
||||||
### Added
|
### Added
|
||||||
|
8
psu
8
psu
@ -1234,9 +1234,15 @@ tasks() {
|
|||||||
tasks_healthy() {
|
tasks_healthy() {
|
||||||
local tasks_running
|
local tasks_running
|
||||||
tasks_running=$(tasks 'running' 'running')
|
tasks_running=$(tasks 'running' 'running')
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
local tasks_job_complete
|
local tasks_job_complete
|
||||||
tasks_job_complete=$(tasks 'shutdown' 'complete')
|
tasks_job_complete=$(tasks 'shutdown' 'complete')
|
||||||
echo "$(echo "${tasks_running}${tasks_job_complete}" | jq -sjc 'add | unique_by(.ID)')"
|
if [ $? -ne 0 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
echo "${tasks_running}${tasks_job_complete}" | jq -sjc 'add | unique_by(.ID)'
|
||||||
}
|
}
|
||||||
|
|
||||||
services() {
|
services() {
|
||||||
|
Loading…
Reference in New Issue
Block a user