Mercurial > rm-limit
changeset 4:21f705b2b8c9
Fixed a couple of comments.
author | Eris Caffee <discordia@eldalin.com> |
---|---|
date | Wed, 18 May 2011 02:22:19 -0500 |
parents | 58e218e2b4ac |
children | e17c757389d7 |
files | rm-limit.pl |
diffstat | 1 files changed, 7 insertions(+), 5 deletions(-) [+] |
line diff
1.1 --- a/rm-limit.pl Tue May 17 22:12:59 2011 -0500 1.2 +++ b/rm-limit.pl Wed May 18 02:22:19 2011 -0500 1.3 @@ -23,17 +23,19 @@ 1.4 # 1.5 # This scripts has 3 lists: 1.6 # A blacklist of directories from which this script will absolutely refuse 1.7 -# to delete anything. 1.8 +# to delete anything. Individual files may be listed too. 1.9 # A whitelist of directories from which deletions are always allowed. 1.10 +# Individual files may be listed too. 1.11 # A whitelist of directories from which deletions are always allowed only if 1.12 -# they occur in subdirectories of the listed main directory. 1.13 +# they occur in subdirectories of the listed main directory. Only 1.14 +# directories may be listed. No individual files allowed here. 1.15 # 1.16 # Any file not specified as whitelisted or blacklisted will generate a 1.17 # warning prompt and offer the user a chance to cancel the deletion. 1.18 # 1.19 # The purpose is to help prevent accidental deletion of important system files. 1.20 # 1.21 -# To use this, install this script somewher ein your path and add something 1.22 +# To use this, install this script somewhere in your path and add something 1.23 # like the following to your default login scripts, such as the .bash_profile 1.24 # file of the root user. 1.25 # 1.26 @@ -43,13 +45,13 @@ 1.27 # fi 1.28 # 1.29 # unalias rm 2> /dev/null 1.30 -# alias rm="rm-limit ${RM_Opts}" 1.31 +# alias rm="rm-limit.pl ${RM_Opts}" 1.32 # 1.33 # By installing this as an alias for rm that is set up in .bash_profile, it will 1.34 # only be active during interactive logins, and not when scripts are running. 1.35 # 1.36 1.37 -# Last update: 2011/05/17 22:12:09 1.38 +# Last update: 2011/05/18 02:21:42 1.39 1.40 use strict; 1.41 use warnings;