Browse Source

Update 'PKGBUILD'

Nathaniel van Diepen 2 years ago
parent
commit
72eb751ba5
1 changed files with 6 additions and 2 deletions
  1. 6 2
      PKGBUILD

+ 6 - 2
PKGBUILD

@@ -18,8 +18,12 @@ prepare(){
 	git submodule init;
 	git submodule update;
 	cd "$srcdir"
-	[ -d llvm-project ] && rm -rf llvm-project;
-	git clone -b z80 --depth 1 https://github.com/jacobly0/llvm-project.git
+	if [ -d llvm-project ];then
+		cd llvm-project;
+		git pull --depth 1;
+	else
+		git clone -b z80 --depth 1 https://github.com/jacobly0/llvm-project.git
+	fi;
 	mkdir -p "$srcdir/llvm-project-build";
 }
 build(){