source .env if .env exists, else use env (for docker)

This commit is contained in:
Shihaam Abdul Rahman 2024-10-19 02:35:38 +05:00
parent 922f07763a
commit f29417f9e9
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,12 @@
#!/bin/bash #!/bin/bash
if [ -f .env ]; then
source .env
else
echo .env file not found, using env
fi
while true; do while true; do
source .env
curl 'https://faisanet.mib.com.mv/aProfile/keepAlive' \ curl 'https://faisanet.mib.com.mv/aProfile/keepAlive' \
-X 'POST' \ -X 'POST' \

4
tx.sh
View File

@ -1,6 +1,10 @@
#!/bin/bash #!/bin/bash
if [ -f .env ]; then
source .env source .env
else
echo .env file not found, using env
fi
curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \ curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \
-H "cookie: prefTheme=1; ql_0=${QL_0}; IBSID=${IBSID}; dashboardStatsMode=1; _zwaf_ua=Brave" \ -H "cookie: prefTheme=1; ql_0=${QL_0}; IBSID=${IBSID}; dashboardStatsMode=1; _zwaf_ua=Brave" \