OSSP CVS Repository

ossp - Difference in ossp-pkg/shtool/sh.mkdir versions 1.21 and 1.22
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/shtool/sh.mkdir 1.21 -> 1.22

--- sh.mkdir     2003/02/11 13:00:50     1.21
+++ sh.mkdir     2003/08/13 14:20:34     1.22
@@ -38,7 +38,7 @@
 for p in ${1+"$@"}; do
     #   if the directory already exists...
     if [ -d "$p" ]; then
-        if [ ".$opt_f" = .no -a ".$opt_p" = .no ]; then
+        if [ ".$opt_f" = .no ] && [ ".$opt_p" = .no ]; then
             echo "$msgprefix:Error: directory already exists: $p" 1>&2
             errstatus=1
             break

CVSTrac 2.0.1