Rename name to name.sh
This commit is contained in:
parent
70f67384f8
commit
2c14d8f947
4 changed files with 2 additions and 2 deletions
|
@ -85,8 +85,8 @@ gen_random_string () {
|
|||
|
||||
# Generate image name
|
||||
# If name template exists, use it, otherwise generate random string
|
||||
if [[ -f $variantdir/name ]]; then
|
||||
declare -r image_name=$(source $variantdir/name)
|
||||
if [[ -f $variantdir/name.sh ]]; then
|
||||
declare -r image_name=$(source $variantdir/name.sh)
|
||||
else
|
||||
declare -r image_name=$(gen_random_string)
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue