File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ elif [[ -z $(find "${WORKSPACE_MOUNT}" -mindepth 1 -maxdepth 1) ]]; then
5656 red " # No files found under $( bold " ${WORKSPACE_MOUNT} " ) ." | _term_fold >&2
5757 red " # Run Geodesic from your source directory." | _term_fold >&2
5858 red " # Change (\` cd\` ) to your source directory (in your git repo)" | _term_fold >&2
59- red " # and run ${APP_NAME:- Geodesic } from there." | _term_fold >&2
59+ red " # and run ${APP_NAME:- ${NAMESPACE :- $(basename ${DOCKER_IMAGE :- geodesic} )} } from there." | _term_fold >&2
6060 red " ################################################################" >&2
6161 echo
6262fi
Original file line number Diff line number Diff line change 11#! /bin/bash
22export DOCKER_IMAGE=" {{getenv " DOCKER_IMAGE" " cloudposse/geodesic" }}"
33export DOCKER_TAG=" {{- getenv " DOCKER_TAG" (printf " ${1:-% s-% s} " ((index (getenv " GEODESIC_VERSION" | strings.Split " " ) 0) | default " dev" ) (getenv " GEODESIC_OS" " debian" )) -}}"
4- export APP_NAME=${APP_NAME:- $(basename $DOCKER_IMAGE ) }
4+ export APP_NAME=${APP_NAME:- ${NAMESPACE :- $ (basename ${ DOCKER_IMAGE:- geodesic} )} }
55export INSTALL_PATH=${INSTALL_PATH:-/ usr/ local/ bin}
66export SAFE_INSTALL_PATH=" $HOME /.local/bin" # per XDG recommendations
77export INSTALLER_NAME=" ${APP_NAME} -installer"
9090 exit 1
9191fi
9292
93- command -v hash 2> /dev/null && hash -r # forget hashed location of $APP_NAME
93+ command -v hash 2> /dev/null && hash -r # forget hashed location of $APP_NAME
9494if [ ! " ${INSTALL_PATH} /${APP_NAME} " -ef " $( command -v " ${APP_NAME} " 2> /dev/null) " ]; then
9595 if [ -x " ${INSTALL_PATH} /${APP_NAME} " ]; then
9696 if [ -n " $( command -v " ${APP_NAME} " 2> /dev/null) " ]; then
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ function parse_args() {
120120 --solo)
121121 export ONE_SHELL=true
122122 ;;
123- --no-solo| --no-one-shell)
123+ --no-solo | --no-one-shell)
124124 export ONE_SHELL=false
125125 ;;
126126 --trace)
@@ -137,7 +137,9 @@ function parse_args() {
137137 ;;
138138 --workspace=* )
139139 unset WORKSPACE_FOLDER_HOST_DIR
140- ;& # fall through
140+ # ;& # fall through only introduced in bash 4.0, we want to remain 3.2 compatible
141+ options+=(" ${arg} " )
142+ ;;
141143 --* )
142144 options+=(" ${arg} " )
143145 ;;
You can’t perform that action at this time.
0 commit comments