summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-31 10:12:12 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-31 10:12:12 +0000
commit1332c73d0cfdd4305f6666b93f5030b6ebcd4ebb (patch)
tree3ca657e2923a92b71b43e6d1fd94c155fd464c64 /perl-install
parent9e6d5347318da13047abc379cfc0ddf65c87b628 (diff)
downloaddrakx-1332c73d0cfdd4305f6666b93f5030b6ebcd4ebb.tar
drakx-1332c73d0cfdd4305f6666b93f5030b6ebcd4ebb.tar.gz
drakx-1332c73d0cfdd4305f6666b93f5030b6ebcd4ebb.tar.bz2
drakx-1332c73d0cfdd4305f6666b93f5030b6ebcd4ebb.tar.xz
drakx-1332c73d0cfdd4305f6666b93f5030b6ebcd4ebb.zip
"cp -a" doesn't need "echo yes|"
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/printer.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/perl-install/printer.pm b/perl-install/printer.pm
index 2e8c2b7a7..9ac3d7524 100644
--- a/perl-install/printer.pm
+++ b/perl-install/printer.pm
@@ -1169,9 +1169,7 @@ sub configure_queue($) {
if (($printer->{currentqueue}{queue} ne
$printer->{OLD_QUEUE}) &&
($printer->{configured}{$printer->{OLD_QUEUE}})) {
- system("echo yes | cp -f " .
- "$prefix/etc/cups/ppd/$printer->{OLD_QUEUE}.ppd " .
- "$prefix/etc/cups/ppd/$printer->{currentqueue}{queue}.ppd");
+ system("cp -f $prefix/etc/cups/ppd/$printer->{OLD_QUEUE}.ppd $prefix/etc/cups/ppd/$printer->{currentqueue}{queue}.ppd");
}
} else {
# Raw queue