diff --git a/build.sh b/build.sh index bb95137..f688fb5 100755 --- a/build.sh +++ b/build.sh @@ -70,6 +70,13 @@ autoInstallDependencies() { else echo "$password" | sudo -S apt-get update echo "$password" | sudo -S apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev xattr openjdk-11-jdk jq android-sdk-libsparse-utils python3 python + + if [ ! -f /bin/repo -a -c `repo &>/dev/null` ];then + mkdir -p ~/bin + curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo + echo "$password" | sudo -S cp ~/bin/repo /bin/repo + echo "$password" | sudo -S chmod a+x /bin/repo + fi fi fi }