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 "${red}Account Locked!${reset}"
echo "${lightred}Please reset password and login again.${reset}" echo "${lightred}Please reset password and login again.${reset}"
echo "" echo ""
if [ "$MAC" = "true" ] if [ "$OS" = "macos" ]
then then
open $BML_RESETPASS open $BML_RESETPASS
elif [ "$WSL" = "true" ] elif [ "$OS" = "windows" ]
then then
cmd.exe /C START $BML_RESETPASS cmd.exe /C START $BML_RESETPASS
elif [ "$ANDROID" = "true" ] elif [ "$OS" = "android" ]
then then
am start -a android.intent.action.VIEW -d $BML_RESETPASS am start -a android.intent.action.VIEW -d $BML_RESETPASS
else else

View File

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