This file contains 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 | |
set -euo pipefail | |
readonly SYSTEMD_CONFIG="/lib/systemd/system/iota.service" | |
readonly SCRIPT_NAME=$(basename $0) | |
function get_latest_github_release { | |
curl -s https://api.github.com/repos/iotaledger/iri/releases/latest | awk '/tag_name/{print $2}' | tr -d '"v,' | |
} |