source .env if .env exists, else use env (for docker)
This commit is contained in:
parent
922f07763a
commit
f29417f9e9
@ -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' \
|
||||||
|
6
tx.sh
6
tx.sh
@ -1,6 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source .env
|
if [ -f .env ]; then
|
||||||
|
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" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user