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