[Fai-commit] r3296 - trunk/bin
fai-repository at svn.debian.org
fai-repository at svn.debian.org
Mon Mar 20 10:07:52 UTC 2006
Author: lange
Date: 2006-03-20 10:07:51 +0000 (Mon, 20 Mar 2006)
New Revision: 3296
Modified:
trunk/bin/fcopy
Log:
also use environment variable FCOPY_DRYRUN for $opt_n
Modified: trunk/bin/fcopy
===================================================================
--- trunk/bin/fcopy 2006-03-19 23:28:46 UTC (rev 3295)
+++ trunk/bin/fcopy 2006-03-20 10:07:51 UTC (rev 3296)
@@ -27,7 +27,7 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#*********************************************************************
-my $version = "Version 2.2, 20-march-2006";
+my $version = "Version 2.2.1, 20-march-2006";
use strict;
use File::Copy;
@@ -403,7 +403,7 @@
$|=1;
getopts('Ms:t:rm:vidDc:C:hF:lL:P:Bb:I:Un');
$opt_h && usage;
-$opt_n and warn "Dry-run only! Nothing is really executed.\n";
+$opt_n || $ENV{FCOPY_DRYRUN} and warn "Dry-run only! Nothing is really executed.\n";
$debdry = $debug || $opt_n || 0; # is true if $debug or dry-run mode
$opt_M and $opt_m = "root,root,0644"; # set default modes
$opt_m && check_mopt();
More information about the Fai-commit
mailing list