Resolve prefix variables.

This commit is contained in:
Troy Kinsella 2018-10-30 10:29:33 -07:00
parent 6851911e4a
commit 5d0034b2ff

View file

@ -8,7 +8,7 @@ get_bucket() {
get_prefix() {
local prefix=$(echo "$payload" | jq -r '.params.prefix // ""')
if [ -n "$prefix" ]; then
prefix=$(eval $prefix) # Resolve variables like $BUILD_NAME, etc.
prefix=$(eval echo $prefix) # Resolve variables like $BUILD_NAME, etc.
fi
echo $prefix
}