mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2025-07-13 06:53:25 +00:00
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:
parent
3e44d7347b
commit
8f3fc3014d
|
@ -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 "$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user