From fa26e7f2e744d123ab0f59250a4c2f77425b5a6a Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Sun, 1 May 2022 15:41:22 +0300 Subject: [PATCH] Moved config to .env --- .gitignore | 4 +++- .modingnore | 1 + pack.sh | 11 ++++++++--- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 68743aa..0b169b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -/*.zip \ No newline at end of file +/*.zip +/.env +/src diff --git a/.modingnore b/.modingnore index 4319e7e..529cdb2 100644 --- a/.modingnore +++ b/.modingnore @@ -2,3 +2,4 @@ .settings .buildpath .project +.env \ No newline at end of file diff --git a/pack.sh b/pack.sh index eeb2540..6114405 100755 --- a/pack.sh +++ b/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