attenmt to fix encryption on macos

This commit is contained in:
Shihaam Abdul Rahman 2021-05-10 22:14:08 +05:00
parent 823ed51c5b
commit 84637f4f32
2 changed files with 10 additions and 9 deletions

View File

@ -15,13 +15,13 @@ elif [ "$LOGIN" = "20" ]
echo "${red}Account Locked!${reset}"
echo "${lightred}Please reset password and login again.${reset}"
echo ""
if [ "$MAC" = "true" ]
if [ "$OS" = "macos" ]
then
open $BML_RESETPASS
elif [ "$WSL" = "true" ]
elif [ "$OS" = "windows" ]
then
cmd.exe /C START $BML_RESETPASS
elif [ "$ANDROID" = "true" ]
elif [ "$OS" = "android" ]
then
am start -a android.intent.action.VIEW -d $BML_RESETPASS
else

View File

@ -1,18 +1,19 @@
#!/bin/bash
if [ "uname -r | grep -oE microsoft" = "microsoft" ] || [ "uname -r | grep -oE Microsoft" = "Microsoft" ] || [ "uname -r | grep -oE icrosoft" = "icrosoft" ]
if [ "uname -r | grep -oE microsoft" = "microsoft" ]
then
WSL=true
#echo "${red}WSL Not Supported!${reset}" 1>&2
OS=windows
#echo ${red}WSL Not Supported!${reset} 1>&2
#exit
elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ]
then
MAC=true
#echo "${red}MacOS Not Supported!${reset}" 1>&2
OS=macos
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
#echo ${red}MacOS Not Supported!${reset} 1>&2
#exit
elif [ "uname -a | grep -oE Android" = "Android" ]
then
ANDROID=true
OS=android
else
:
fi