Skip to content

Commit 73778fa

Browse files
authored
Fix #964 (#965)
1 parent 16b16b4 commit 73778fa

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

rootfs/etc/profile.d/_40-preferences.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
6262
fi

rootfs/templates/bootstrap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
export DOCKER_IMAGE="{{getenv "DOCKER_IMAGE" "cloudposse/geodesic"}}"
33
export 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})}}
55
export INSTALL_PATH=${INSTALL_PATH:-/usr/local/bin}
66
export SAFE_INSTALL_PATH="$HOME/.local/bin" # per XDG recommendations
77
export INSTALLER_NAME="${APP_NAME}-installer"
@@ -90,7 +90,7 @@ else
9090
exit 1
9191
fi
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
9494
if [ ! "${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

rootfs/templates/wrapper-body.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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
;;

0 commit comments

Comments
 (0)