Skip to content

Instantly share code, notes, and snippets.

@YDX-2147483647
Created July 14, 2023 14:43
Show Gist options
  • Select an option

  • Save YDX-2147483647/adeedb4002b72b24be083aea4e27f794 to your computer and use it in GitHub Desktop.

Select an option

Save YDX-2147483647/adeedb4002b72b24be083aea4e27f794 to your computer and use it in GitHub Desktop.
#!/bin/bash
status=`bitsrun status --json | jq '.error' --raw-output`
if [[ $status != 'ok' ]]; then
echo "Status: $status. Relogin…"
bitsrun logout
bitsrun login
fi
@YDX-2147483647
Copy link
Author

Original version: KJH-x/Batch_Collections#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment