Last active
August 29, 2015 14:25
-
-
Save marcojetson/4ec16d2b676bff5c8984 to your computer and use it in GitHub Desktop.
lilidns.com cli host updater
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/bash | |
if [ -z "$1" ] | |
then | |
echo "Usage $0 <token> [ip]" | |
exit | |
fi | |
if [ -n "$2" ] | |
then | |
PARAMS="ip=$2" | |
fi | |
curl -X POST -H 'Authorization: $1' --data '$PARAMS' https://api.lilidns.com/update |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment