Changeset 260 in openpam


Ignore:
Timestamp:
Jun 18, 2003, 11:32:54 AM (16 years ago)
Author:
Dag-Erling Smørgrav
Message:

Change '-type f' to '-not -type d' to make sure we also get symlinks
and whatnot.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/clean.sh

    r257 r260  
    11#!/bin/sh
    22#
    3 # $P4: //depot/projects/openpam/clean.sh#1 $
     3# $P4: //depot/projects/openpam/clean.sh#2 $
    44
    55tmpfile="/tmp/openpam-clean.$$"
    66p4 files ... | grep -v 'delete change' |
    77    sed 's|^.*/openpam/||; s|#.*$||' > "${tmpfile}"
    8 find . -type f | cut -c 3- | while read file ; do
     8find . -not -type d | cut -c 3- | while read file ; do
    99    grep "^${file}\$" "${tmpfile}" >/dev/null || rm -v "${file}"
    1010done
Note: See TracChangeset for help on using the changeset viewer.