Created
February 2, 2021 20:46
-
-
Save radimklaska/6c41d58f856f8e678ad802b38d689622 to your computer and use it in GitHub Desktop.
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
#!/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