Remove space between function names and parethesis

This commit is contained in:
Juan Carlos Mejías Rodríguez 2018-11-25 13:57:29 -05:00
parent 7715832325
commit a8d57bf268

14
psu
View File

@ -5,7 +5,7 @@
################### ###################
# Main entrypoint # # Main entrypoint #
################### ###################
main () { main() {
# Set arguments through envvars # Set arguments through envvars
ACTION=${ACTION} ACTION=${ACTION}
PORTAINER_USER=${PORTAINER_USER} PORTAINER_USER=${PORTAINER_USER}
@ -135,7 +135,7 @@ err() {
# Returns: # # Returns: #
# None # # None #
####################################### #######################################
check_argument () { check_argument() {
local argument_value=$1 local argument_value=$1
local argument_name=$2 local argument_name=$2
local argument_envvar=$3 local argument_envvar=$3
@ -157,7 +157,7 @@ check_argument () {
# Returns: # # Returns: #
# None # # None #
########################################### ###########################################
check_for_errors () { check_for_errors() {
local exit_code=$1 local exit_code=$1
local response=$2 local response=$2
if [ $exit_code -ne 0 ]; then if [ $exit_code -ne 0 ]; then
@ -182,7 +182,7 @@ check_for_errors () {
# Returns: # # Returns: #
# None # # None #
########################################### ###########################################
echo_verbose () { echo_verbose() {
local message=$1 local message=$1
if [ $VERBOSE_MODE == "true" ]; then if [ $VERBOSE_MODE == "true" ]; then
echo $message echo $message
@ -198,7 +198,7 @@ echo_verbose () {
# Returns: # # Returns: #
# None # # None #
######################################### #########################################
echo_debug () { echo_debug() {
local message=$1 local message=$1
if [ $DEBUG_MODE == "true" ]; then if [ $DEBUG_MODE == "true" ]; then
echo $message echo $message
@ -219,7 +219,7 @@ echo_debug () {
# Returns: # # Returns: #
# None # # None #
########################## ##########################
deploy () { deploy() {
# Read docker-compose file content # Read docker-compose file content
STACK_YAML_CONTENT=$(cat "$DOCKER_COMPOSE_FILE") STACK_YAML_CONTENT=$(cat "$DOCKER_COMPOSE_FILE")
@ -348,7 +348,7 @@ deploy () {
# Returns: # # Returns: #
# None # # None #
########################## ##########################
undeploy () { undeploy() {
if [ -z "$STACK" ]; then if [ -z "$STACK" ]; then
if [ $STRICT_MODE == "true" ]; then if [ $STRICT_MODE == "true" ]; then
err "Error: Stack $PORTAINER_STACK_NAME does not exist." err "Error: Stack $PORTAINER_STACK_NAME does not exist."