Fixed default key directory

Script was not looking in the right place for the auto-generated key directory. This patch fixes issue #35.
This commit is contained in:
Jeff Alyanak 2019-12-26 21:02:41 -05:00
parent 3e44d7347b
commit 8f3fc3014d
No known key found for this signature in database
GPG Key ID: DD0CB89C105B276F

View File

@ -4,7 +4,7 @@ DIR=`dirname "$0"`
DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd` DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd`
# Grab the absolute path to the default pfx location # Grab the absolute path to the default pfx location
cert_path="$DIR/.keys/cert.pfx" cert_path="$DIR/../../.keys/cert.pfx"
if [ "$#" -lt "1" ]; then if [ "$#" -lt "1" ]; then
echo "USAGE: $0 <ABSOLUTE PATH TO CERT.PFX> [License Gen args...]" echo "USAGE: $0 <ABSOLUTE PATH TO CERT.PFX> [License Gen args...]"
@ -15,5 +15,7 @@ elif [ "$#" -ge "2" ]; then
shift shift
fi fi
echo "$cert_path"
docker run -it --rm -v "$cert_path:/cert.pfx" bitbetter/licensegen "$@" docker run -it --rm -v "$cert_path:/cert.pfx" bitbetter/licensegen "$@"