Created
July 14, 2023 14:43
-
-
Save YDX-2147483647/adeedb4002b72b24be083aea4e27f794 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| status=`bitsrun status --json | jq '.error' --raw-output` | |
| if [[ $status != 'ok' ]]; then | |
| echo "Status: $status. Relogin…" | |
| bitsrun logout | |
| bitsrun login | |
| fi |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Original version: KJH-x/Batch_Collections#1