Skip to content

Commit

Permalink
print warning only in debug mode, Closes: #826897
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jul 27, 2016
1 parent 69156ca commit 9d2a7f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/fcopy
Expand Up @@ -5,7 +5,7 @@
# fcopy -- copy files using FAI classes and preserve directory structure
#
# This script is part of FAI (Fully Automatic Installation)
# Copyright (C) 2000-2015 Thomas Lange, lange@informatik.uni-koeln.de
# Copyright (C) 2000-2016 Thomas Lange, lange@informatik.uni-koeln.de
# Universitaet zu Koeln
# Copyright (C) 2001-2005 Henning Glawe, glaweh@physik.fu-berlin.de
# Freie Univeritaet Berlin
Expand Down Expand Up @@ -89,7 +89,7 @@ sub copy_one {

# $prefix/$source must be a directory
if (-f $ps) { ewarn("$ps is a file, but must be a directory containing templates.");return };
unless (-d $ps) { ewarn("Nonexisting directory $ps. No files copied.");return }
unless (-d $ps) { ewarn("Nonexisting directory $ps. No files copied.") if $debug;return }

# use the last class for which a file exists
foreach (@classes) { $class = $_,last if -f "$ps/$_" || ($opt_H && -l "$ps/$_"); }
Expand Down

0 comments on commit 9d2a7f1

Please sign in to comment.