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
| #!/usr/bin/env bash | |
| function wait_for_new_cookie() { | |
| local start="$(stat --format="%Y" "${HOME}/.leakedzone.cookie")" | |
| local end=0 | |
| # Check every 30s if user have updated the cookie. | |
| echo "ERROR: Update cookie" | |
| while [[ "${end}" -le "${start}" ]]; do | |
| sleep 30 |