From 015db4c2f52b3fadc790c31798279033eeb0ed09 Mon Sep 17 00:00:00 2001 From: xiaoleGun <1592501605@qq.com> Date: Fri, 12 May 2023 22:07:54 +0800 Subject: [PATCH] Auto install repo Signed-off-by: xiaoleGun <1592501605@qq.com> --- build.sh | 7 +++++++ 1 file changed, 7 insertions(+) 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 }