mirror of
				https://github.com/jakeswenson/BitBetter.git
				synced 2025-10-31 12:53:25 +00:00 
			
		
		
		
	strange characters for non-interactive mode (#123)
This commit is contained in:
		
							parent
							
								
									0373de6f72
								
							
						
					
					
						commit
						5fbb7fdc49
					
				|  | @ -6,14 +6,21 @@ DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /us | |||
| # Grab the absolute path to the default pfx location | ||||
| cert_path="$DIR/../../.keys/cert.pfx" | ||||
| 
 | ||||
| if [ "$#" -lt "1" ]; then | ||||
|     echo "USAGE: $0 <ABSOLUTE PATH TO CERT.PFX> [License Gen args...]" | ||||
| if [ "$#" -lt "2" ]; then | ||||
|     echo "USAGE: $0 <ABSOLUTE PATH TO CERT.PFX> <License Gen action> [License Gen args...]" | ||||
|     echo "ACTIONS:" | ||||
|     echo " interactive" | ||||
|     echo " user" | ||||
|     echo " org" | ||||
|     exit 1 | ||||
| elif [ "$#" -ge "2" ]; then | ||||
|     # If a cert path is provided manually, override the default | ||||
|     cert_path="$1" | ||||
|     shift | ||||
| fi | ||||
| 
 | ||||
| docker run -it --rm -v "$cert_path:/cert.pfx" bitbetter/licensegen "$@" | ||||
| cert_path="$1" | ||||
| action="$2" | ||||
| shift | ||||
| 
 | ||||
| if [ $action = "interactive" ]; then | ||||
|     docker run -it --rm -v "$cert_path:/cert.pfx" bitbetter/licensegen "$@" | ||||
| else | ||||
|     docker run --rm -v "$cert_path:/cert.pfx" bitbetter/licensegen "$@" | ||||
| fi | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user