Moved config to .env
This commit is contained in:
parent
3bfdcc68e6
commit
fa26e7f2e7
|
@ -1 +1,3 @@
|
|||
/*.zip
|
||||
/*.zip
|
||||
/.env
|
||||
/src
|
||||
|
|
|
@ -2,3 +2,4 @@
|
|||
.settings
|
||||
.buildpath
|
||||
.project
|
||||
.env
|
11
pack.sh
11
pack.sh
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue