CVSROOT: namecheck.sh - msg about mkdir if really it was new dir
glen
glen at pld-linux.org
Wed Feb 20 21:42:52 CET 2008
Author: glen Date: Wed Feb 20 20:42:52 2008 GMT
Module: CVSROOT Tag: HEAD
---- Log message:
- msg about mkdir if really it was new dir
---- Files affected:
CVSROOT:
namecheck.sh (1.14 -> 1.15)
---- Diffs:
================================================================
Index: CVSROOT/namecheck.sh
diff -u CVSROOT/namecheck.sh:1.14 CVSROOT/namecheck.sh:1.15
--- CVSROOT/namecheck.sh:1.14 Wed Jan 23 21:52:35 2008
+++ CVSROOT/namecheck.sh Wed Feb 20 21:42:46 2008
@@ -15,8 +15,10 @@
if [ "$module" == "SPECS" ]; then
pkgname=${file%.spec}
if [ "${pkgname}.spec" = "$file" ] ;then
- [ -d $CVSROOT/packages/$pkgname ] || mkdir -p $CVSROOT/packages/$pkgname/files
- echo "Created directories for package '$pkgname'"
+ if [ ! -d $CVSROOT/packages/$pkgname ]; then
+ mkdir -p $CVSROOT/packages/$pkgname/files
+ echo "Created directories for package '$pkgname'"
+ fi
else
echo "Warning: File '$file' is not a spec file, it shouldn't be in SPECS module!"
fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/CVSROOT/namecheck.sh?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list