- Add missing new files!
This commit is contained in:
33
sbin/docker_mk_dir
Executable file
33
sbin/docker_mk_dir
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
#-------------------------------------------------------------------------------
|
||||
|
||||
set -o errexit
|
||||
|
||||
|
||||
|
||||
grep -e _LOG_ -e _LIB_ .env | grep -e _EXT= | while read line
|
||||
do
|
||||
OIFS=$IFS
|
||||
IFS="="
|
||||
|
||||
set $line
|
||||
|
||||
IFS=$OIFS
|
||||
|
||||
|
||||
grep $1 compose.yaml >/dev/null
|
||||
|
||||
if [[ "$?" == "0" ]]
|
||||
then
|
||||
eval echo $2
|
||||
fi
|
||||
done | sort -u | while read dir
|
||||
do
|
||||
echo "Add/Create: [${dir}]"
|
||||
|
||||
mkdir -p ${dir}
|
||||
echo -e '# Ignore everything in this directory\n*\n# Except this file\n!.gitignore' > ${dir}/.gitignore
|
||||
|
||||
git add ${dir}/.gitignore
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user