Exit with error if the script end with queue enable
This commit is contained in:
parent
1e2bbcea40
commit
104932b182
|
@ -155,6 +155,12 @@ for host: ${RED}${sge_hostname:=/dev/null}${COLOR_DEBUG}."
|
|||
is_queue_enable "${sge_hostname}" "${sge_queue_name}" \
|
||||
&& disable_sge_queue "${sge_hostname}" "${sge_queue_name}"
|
||||
|
||||
## If the queue is still enable
|
||||
### Exit with error
|
||||
is_queue_enable "${sge_hostname}" "${sge_queue_name}" \
|
||||
&& printf '%b\n' "${RED}ERROR ${sge_queue_name}@${sge_hostname} is still enable.${RESET}" \
|
||||
&& exit 4
|
||||
|
||||
}
|
||||
# }}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue