Skip to content

Commit 8d7f5a8

Browse files
author
Matthew Fisher
committed
ref(builder): use bash-style substitution
This is already in use at check-repos, which is a fancier way of stripping the file extension from a string.
1 parent aba19e7 commit 8d7f5a8

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)