mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-13 17:11:49 +00:00
refacto - restructure code
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
databases=("db_test" "db_prod")
|
||||
|
||||
template="./mysql/template.sql"
|
||||
output="./mysql/init/init.sql"
|
||||
|
||||
> "$output"
|
||||
for database in "${databases[@]}"; do
|
||||
sed "s/\${database}/$database/g" "$template" >> "$output"
|
||||
echo "" >> "$output"
|
||||
done
|
||||
Reference in New Issue
Block a user