1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p curl gnused common-updater-scripts
6 version
="$(curl -sL https://build.wireguard.com/distros.txt | sed -n 's/^upstream\tkmodtools\t\([^\t]\+\)\t.*/\1/p')"
7 update-source-version wireguard-tools
"$version"