BitBetter/src/licenseGen/run.sh

13 lines
247 B
Bash
Raw Normal View History

2017-10-29 20:13:38 +01:00
#!/bin/bash
script_dir=`cd $(dirname $0); pwd`
2017-10-29 20:44:54 +01:00
if [ "$#" -lt "1" ]; then
echo "USAGE: $0 <ABSOLUTE PATH TO CERT.PFX> [License Gen args...]"
2017-10-29 20:13:38 +01:00
exit 1
fi
2017-10-29 20:44:54 +01:00
cert_path=$1
shift
docker run -it -v "$cert_path:/cert.pfx" bitbetter/licensegen "$@"
2017-10-29 20:13:38 +01:00