attenmt to fix encryption on macos
This commit is contained in:
parent
823ed51c5b
commit
84637f4f32
6
login.sh
6
login.sh
@ -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
|
||||||
|
13
osdetect.sh
13
osdetect.sh
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user