Skip to content

Commit ea8ef5c

Browse files
author
Matthew Fisher
committed
Merge pull request #2749 from bacongobbler/the-power-of-bash
ref(builder): use bash-style substitution
2 parents 3f566bd + 8d7f5a8 commit ea8ef5c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

builder/image/templates/builder

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ set -e
77

88
ARGS=3
99

10-
get_app_name() {
11-
echo $1 | awk -F"." '{print $1}'
12-
}
13-
1410
indent() {
1511
echo " $@"
1612
}
@@ -48,7 +44,7 @@ USER=$1
4844
REPO=$2
4945
GIT_SHA=$3
5046
SHORT_SHA=${GIT_SHA:0:8}
51-
APP_NAME=$(get_app_name $REPO)
47+
APP_NAME="${REPO%.*}"
5248

5349
cd $(dirname $0) # ensure we are in the root dir
5450

0 commit comments

Comments
 (0)