From: Rudolf Polzer Date: Mon, 26 Apr 2010 12:10:54 +0000 (+0200) Subject: pk3dir handling: detect if the matching pk3 file exists, and then ignore the repo... X-Git-Tag: xonotic-v0.1.0preview~483 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic.git;a=commitdiff_plain;h=474bca19f8ed45309e7c021316ac5cf53bf65f63 pk3dir handling: detect if the matching pk3 file exists, and then ignore the repo for the purpose of this script --- diff --git a/all b/all index e1979356..bffab80c 100755 --- a/all +++ b/all @@ -119,6 +119,16 @@ repos_urls=" netradiant " +repos_urls=` + for X in $repos_urls; do + d="${X%%@*}" + p="${d%dir}" + if [ x"$p" = x"$d" ] || [ -d "$d" ] || ! [ -f "$p" ]; then + echo "$X" + fi + done +` + repos=`for X in $repos_urls; do echo "${X%%@*}"; done` if [ "$#" = 0 ]; then