Add condition on bkctld check-canary #67
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hey,
I suggest adding a condition to skip jail which doesn't contain any incs policy or/and jail which had specific context.
I think is a false output to get error on jails which hasn't incs policy.
Idea :
inc_test=$( bkctld status | awk '$4 ~ /0\/0/ {print $0}' | echo $? );
if [ $inc_test -eq 0 ];then echo " INFO - jail doesn't expect any inc"; fiHello there,
Be careful, in your example,
inc_test
won't contain the status code of theawk
command.For example:
inc_test
will always be 0 (OK).inc_test
will always be 1 (not OK).You probably want to do something like this:
okay, thanks for helping me out.
Have you got any opinion about my idea ?