Moved config to .env

This commit is contained in:
Pavel Dmitriev 2022-05-01 15:41:22 +03:00
parent 3bfdcc68e6
commit fa26e7f2e7
3 changed files with 12 additions and 4 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
/*.zip /*.zip
/.env
/src

View File

@ -2,3 +2,4 @@
.settings .settings
.buildpath .buildpath
.project .project
.env

11
pack.sh
View File

@ -1,6 +1,11 @@
#!/bin/bash #!/bin/bash
mod_path='/home/palkan/git/mod_ic_billing' if [ ! -f .env ]
then
echo "Config not found"
exit
fi
source .env
rm -rf ./src rm -rf ./src
cp -r "${mod_path}" "./src" cp -r "${mod_path}" "./src"
@ -30,7 +35,7 @@ zip_name="mod_$mod_name-v$mod_version.zip"
rm -f mod_*.zip rm -f mod_*.zip
cd src cd src
zip -r ../$zip_name . zip -r ../$zip_name .
cd - #cd -
rm -rf src #rm -rf src