Move -a processing, another shellcheck fix
This commit is contained in:
		
							
								
								
									
										12
									
								
								abra
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								abra
									
									
									
									
									
								
							| @ -1,7 +1,12 @@ | ||||
| #!/bin/bash | ||||
| PROGRAM_NAME=""$(basename "$0") | ||||
|  | ||||
| if [ -z "$STACK_NAME" ] || [ -z "$STACK_NAME" ]; then | ||||
| if [ $1 == "-a" ]; then | ||||
| 	STACK_NAME=$2 | ||||
| 	shift 2 | ||||
| fi | ||||
|  | ||||
| if [ -z "$STACK_NAME" ]; then | ||||
| 	echo "$(tput setaf 1)ERROR: \$STACK_NAME must be set (e.g. export STACK_NAME=my_cool_app)$(tput sgr0 )" | ||||
| 	exit | ||||
| fi | ||||
| @ -93,11 +98,6 @@ sub_logs (){ | ||||
| 		--timestamps | ||||
| } | ||||
|  | ||||
| if [ $1 == "-a" ]; then | ||||
| 	STACK_NAME=$2 | ||||
| 	shift 2 | ||||
| fi | ||||
|  | ||||
| subcommand=$1 | ||||
| case $subcommand in | ||||
| 	"" | "-h" | "--help") | ||||
|  | ||||
		Reference in New Issue
	
	Block a user