1
0
mirror of https://github.com/jakeswenson/BitBetter.git synced 2023-10-10 13:36:57 +02:00
BitBetter/licenseGen.sh
Michiel Hazelhof d8b87985b2
Initial work
2023-01-02 20:59:14 +01:00

21 lines
465 B
Bash

#!/bin/sh
DIR=`dirname "$0"`
DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd`
if [ "$#" -lt "2" ]; then
echo "USAGE: <License Gen action> [License Gen args...]"
echo "ACTIONS:"
echo " interactive"
echo " user"
echo " org"
exit 1
fi
if [ "$1" = "interactive" ]; then
shift
docker run -it --rm bitbetter/licensegen "$@"
else
docker run --rm bitbetter/licensegen "$@"
fi