Resolve prefix variables.
This commit is contained in:
parent
6851911e4a
commit
5d0034b2ff
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue