Changeset 4645 for trunk/tools


Ignore:
Timestamp:
Nov 20, 2000, 6:03:14 AM (25 years ago)
Author:
bird
Message:

Corrected a flaw I made when introducing the -s option.
Improoved error message.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/bin/DoWithDirs.cmd

    r4639 r4645  
    1 /* $Id: DoWithDirs.cmd,v 1.7 2000-11-20 03:09:38 bird Exp $
     1/* $Id: DoWithDirs.cmd,v 1.8 2000-11-20 05:03:14 bird Exp $
    22 *
    33 * Syntax: dowithdirs.cmd [-e<list of excludes>] [-c] [-i] [-l] [-r] <cmd with args...>
     
    8484                    when ch = 'S' then
    8585                    do
    86                         fDontStop = 1;
     86                        fExitOnLock = 0;
    8787                    end
    8888
     
    161161                            /* restore old directory and return sucessfully */
    162162                            call directory sOldDir;
    163                             if (fDontStop) then
    164                             do
    165                                 say '[ !Lock found, skips directory.]';
    166                                 iterate;
    167                             end
    168                             else
    169                             do
    170                                 say '[ !Lock found, stops processing.]';
    171                                 exit(0);
    172                             end
     163                            say '[ !Lock found, stops processing.]';
     164                            exit(0);
    173165                        end
    174                         say '[ - warning: Skipping '|| asDirs.i || ' - directory was locked.]';
     166                        say '[ !Skipping ' || asDirs.i || ' - directory was locked.]';
    175167                        fOK = 0;
    176168                    end
     
    191183                    do
    192184                        /* complain and fail if errors aren't ignored. */
    193                         say '[ - rc = 'ret']';
     185                        say '[ - rc = 'ret' ' || asDirs.i || ']';
    194186                        if (\fIgnoreFailure) then
    195187                            exit(rc);
Note: See TracChangeset for help on using the changeset viewer.