Selaa lähdekoodia

package-add updates

Eeems 10 vuotta sitten
vanhempi
commit
abcef66268
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  1. 5 3
      bin/repo-update

+ 5 - 3
bin/repo-update

@@ -84,6 +84,8 @@ for val in "${sites[@]}"; do
 		esac;
 	fi;
 done;
-ls -l $root/repo/updates/ | egrep '^d' | awk '{print $9}' | while read arch; do
-	rm -f $root/repo/updates/$arch/*.pkg.tar.xz;
-done;
+if ! force; then
+	ls -l $root/repo/updates/ | egrep '^d' | awk '{print $9}' | while read arch; do
+		rm -f $root/repo/updates/$arch/*.pkg.tar.xz;
+	done;
+fi;