From 83f2236eed03c2403a1a0af0751dc574f53fc9c8 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Mon, 3 May 2021 22:19:12 +0500 Subject: [PATCH] installer - beta --- bml.sh | 3 +++ installer.sh | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 installer.sh diff --git a/bml.sh b/bml.sh index 11da79a..d252291 100755 --- a/bml.sh +++ b/bml.sh @@ -10,6 +10,9 @@ BML_RESETPASS='https://www.bankofmaldives.com.mv/internetbanking/forgot_password COOKIE=~/.cache/bml-cli/cookie CREDENTIALS=~/.config/bml-cli/.env +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +cd $DIR + #Setting terminal output colors red=`tput setaf 1` #errorred=`tput setaf 196` diff --git a/installer.sh b/installer.sh new file mode 100644 index 0000000..74fa177 --- /dev/null +++ b/installer.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cd /tmp/ +git clone https://github.com/shihaamabr/bml-cli.git 1> /dev/null +mkdir -p /opt/sar/bml-cli/ +mv bml-cli/* /opt/sar/bml-cli/ +touch /usr/bin/bml-cli +echo "#!/bin/bash" > /usr/bin/bml-cli +echo "source /opt/sar/bml-cli/bml.sh" >> /usr/bin/bml-cli +chmod 755 /usr/bin/bml-cli +echo "Installation Complete"