18 lines
No EOL
371 B
Bash
18 lines
No EOL
371 B
Bash
#!/usr/bin/env bash
|
|
|
|
function artifact::dirs() {
|
|
local dirs=(
|
|
"$(ctx::artifact)"
|
|
"$(ctx::artifact::path env)"
|
|
"$(ctx::artifact::path apache)"
|
|
"$(ctx::artifact::path database)"
|
|
"$(ctx::artifact::path docker)"
|
|
)
|
|
printf "%s\n" "${dirs[@]}"
|
|
}
|
|
|
|
function artifact::init() {
|
|
while IFS= read -r dir; do
|
|
mkdir -p "$dir"
|
|
done < <(artifact::dirs)
|
|
} |