Skip to content

Commit

Permalink
#1 check xcode environment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Dubkov committed Aug 30, 2021
1 parent 5e9ff3c commit 6dfecdd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
15 changes: 14 additions & 1 deletion doctor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ if [ $studio_jdk_set -eq 1 ];
## CHECK COCOA PODS:
########

printf "Checking COCOA: \n"
printf "\nChecking COCOA: \n"
pod_found=$(type pod | grep "not found")
if [ -z "$pod_found" ];
then
Expand All @@ -138,6 +138,17 @@ else
installed_correctly=0
fi

#######
## CHECK XCODE ENVIRONMENT:
########

if [ -e "./setup_xcode_environment.sh" ]; then
printf "\nChecking Xcode Environment: \n"
sh setup_xcode_environment.sh
fi



if [ $installed_correctly -eq 1 ];
then
printf "\nAll parameters are set correctly! =)\n"
Expand All @@ -147,3 +158,5 @@ fi





3 changes: 2 additions & 1 deletion setup_xcode_environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ echo "To make the changes take effect, reboot the system!"
out=$(launchctl list | grep $launch_name)
if [ -f $file_path ]
then
echo "LaunchAgent is installed:"
echo "[+] LaunchAgent is installed:"
echo $out
current_java=`(cat $file_path | grep 'jdk' | sed 's/<string>*//' | sed 's/ *<\/string>/ /' | sed 's/\t//' | sed 's/\t//' | sed 's/ *$//')`
echo " - JAVA_HOME: $current_java"
Expand All @@ -65,6 +65,7 @@ then
fi

else
echo "[-] LaunchAgent is not installed:"
java_path=""
android_sdk_path=""
if [ $JAVA_HOME ]
Expand Down

0 comments on commit 6dfecdd

Please sign in to comment.