[arkdep-build] Implement name support
This commit is contained in:
parent
232d4b9f2d
commit
8302354eed
1 changed files with 7 additions and 1 deletions
|
@ -83,7 +83,13 @@ gen_random_string () {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare -r image_name=$(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)
|
||||||
|
else
|
||||||
|
declare -r image_name=$(gen_random_string)
|
||||||
|
fi
|
||||||
|
|
||||||
## Error checking
|
## Error checking
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Reference in a new issue