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

4
.gitignore vendored
View File

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

View File

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

11
pack.sh
View File

@ -1,6 +1,11 @@
#!/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
cp -r "${mod_path}" "./src"
@ -30,7 +35,7 @@ zip_name="mod_$mod_name-v$mod_version.zip"
rm -f mod_*.zip
cd src
zip -r ../$zip_name .
cd -
rm -rf src
#cd -
#rm -rf src