Skip to content

Instantly share code, notes, and snippets.

@Stebalien
Last active February 9, 2017 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stebalien/25fa39c5d60db7311602 to your computer and use it in GitHub Desktop.
Save Stebalien/25fa39c5d60db7311602 to your computer and use it in GitHub Desktop.
Arch Linux rust-nightly updater
#!/bin/bash
VERSION=$(curl "https://static.rust-lang.org/dist/channel-rust-nightly-date.txt")
sed -i PKGBUILD -e 's/^_date=.*$/_date='"${VERSION}/"
makepkg -sirf --noconfirm
git add PKGBUILD
git commit -m "bump"
git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment