[clbuild-devel] [PATCH] Simplify test for existing repository
Daniel White
daniel at whitehouse.id.au
Fri Oct 24 17:12:33 UTC 2008
There is an odd test in the method below:
dribble_get() {
label="$1"
name="$2"
if test -d `echo ${name}*/ | awk '{print $1;}'`; then
echo -n "UPDATE "
else
echo -n "NEW "
fi
echo "$label $name"
}
I can't seem to find any sane reason that we'd want to get a list of
all possible directories that happen to start with $name rather than
just test for a directory $name.
Patch attached to just test for a directory, $name.
--
Daniel White
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simplify-test-for-exisiting-repository.dpatch
Type: application/octet-stream
Size: 22372 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/clbuild-devel/attachments/20081025/ca614e78/attachment.obj>
More information about the clbuild-devel
mailing list