Skip to content

Instantly share code, notes, and snippets.

@radimklaska
Created February 2, 2021 20:46
Show Gist options
  • Save radimklaska/6c41d58f856f8e678ad802b38d689622 to your computer and use it in GitHub Desktop.
Save radimklaska/6c41d58f856f8e678ad802b38d689622 to your computer and use it in GitHub Desktop.
#!/bin/sh
# What's the latest adminner version?
tag=$(curl --silent "https://api.github.com/repos/vrana/adminer/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
version=$(echo "${tag//v}")
# Download adminer.
curl -o /var/www/html/adminer.php https://github.com/vrana/adminer/releases/download/${tag}/adminer-${version}.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment