From f29417f9e98ed028f525f88f66b94e09a93b930c Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Sat, 19 Oct 2024 02:35:38 +0500 Subject: [PATCH] source .env if .env exists, else use env (for docker) --- keepalive.sh | 6 +++++- tx.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/keepalive.sh b/keepalive.sh index fa2bc62..6a01dbe 100755 --- a/keepalive.sh +++ b/keepalive.sh @@ -1,8 +1,12 @@ #!/bin/bash +if [ -f .env ]; then + source .env +else + echo .env file not found, using env +fi while true; do -source .env curl 'https://faisanet.mib.com.mv/aProfile/keepAlive' \ -X 'POST' \ diff --git a/tx.sh b/tx.sh index f9267f2..2296171 100755 --- a/tx.sh +++ b/tx.sh @@ -1,6 +1,10 @@ #!/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' \ -H "cookie: prefTheme=1; ql_0=${QL_0}; IBSID=${IBSID}; dashboardStatsMode=1; _zwaf_ua=Brave" \