JustOneMoreBlock / shell-scripts

Various Shell Scripts
MIT License
5 stars 7 forks source link

Multicraft License Key 2 #23

Open JustOneMoreBlock opened 7 years ago

JustOneMoreBlock commented 7 years ago
sh auto-install-multicraft.sh --multicraft_license=KEY

args

JustOneMoreBlock commented 6 years ago
#!/bin/bash

usage()
{
    cat <<EOF
    Options:
        --multicraft_key LICENSE      Add your license key automatically.
EOF
}

while [ -n "$1" ]; do
if [ "$1" = "--multicraft_license" ]; then
    usage
    shift
fi

read license;

if [ "$multicraft_license" = "$license" ]; then
    echo "$license" >> /home/root/multicraft/multicraft.key;
fi

UNTESTED