add some dependencies check
This commit is contained in:
parent
b7e13aa864
commit
71e7926448
@ -4,7 +4,7 @@ echo You need to run this script as root.
|
|||||||
else
|
else
|
||||||
clear
|
clear
|
||||||
echo "Copyright (c) 2020, Yaya4 All rights reserved."
|
echo "Copyright (c) 2020, Yaya4 All rights reserved."
|
||||||
echo -e "\e[31mUncursus 2.0 Migration Part By Yaya4_4 1.2.2-3 (Stable)\e[0m"
|
echo -e "\e[31mUncursus 2.0 Migration Part By Yaya4_4 1.2.2-4 (Stable)\e[0m"
|
||||||
checkiOSVersion(){
|
checkiOSVersion(){
|
||||||
echo "Checking iOS Version ..."
|
echo "Checking iOS Version ..."
|
||||||
VER=$(/usr/bin/plutil -key ProductVersion /System/Library/CoreServices/SystemVersion.plist)
|
VER=$(/usr/bin/plutil -key ProductVersion /System/Library/CoreServices/SystemVersion.plist)
|
||||||
@ -27,13 +27,13 @@ fi
|
|||||||
}
|
}
|
||||||
checkDependencies(){
|
checkDependencies(){
|
||||||
echo "Checking Dependencies ..."
|
echo "Checking Dependencies ..."
|
||||||
need2 = ""
|
need2=""
|
||||||
command -v wget >/dev/null 2>&1 || need2+="wget "
|
command -v wget >/dev/null 2>&1 || need2+="wget "
|
||||||
command -v plutil >/dev/null 2>&1 || need2+="com.bingner.plutil "
|
command -v plutil >/dev/null 2>&1 || need2+="com.bingner.plutil "
|
||||||
if [[ $need2 != "" ]]; then
|
if [[ $need2 != "" ]]; then
|
||||||
echo "Installing Dependencies..."
|
echo "Installing Dependencies..."
|
||||||
apt update
|
apt update
|
||||||
apt install $need -y
|
apt install $need2 -y
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
checkSileo(){
|
checkSileo(){
|
||||||
|
Reference in New Issue
Block a user