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
|
# Generate image name
|
||||||
# If name template exists, use it, otherwise generate random string
|
# If name template exists, use it, otherwise generate random string
|
||||||
if [[ -f $variantdir/name ]]; then
|
if [[ -f $variantdir/name.sh ]]; then
|
||||||
declare -r image_name=$(source $variantdir/name)
|
declare -r image_name=$(source $variantdir/name.sh)
|
||||||
else
|
else
|
||||||
declare -r image_name=$(gen_random_string)
|
declare -r image_name=$(gen_random_string)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue