debian/fake-bin/crontab
raw| 1 | #!/usr/bin/perl -w |
| 2 | use strict; |
| 3 | |
| 4 | # mock crontab command for the test suite that only knows '-l' |
| 5 | # see https://bugs.debian.org/838089 |
| 6 | |
| 7 | my $me = $ENV{USER} || '(none)'; |
| 8 | |
| 9 | my $opt = shift || ''; |
| 10 | if ($opt eq '-l') { |
| 11 | print STDERR "no crontab for $me\n"; |
| 12 | exit 1; |
| 13 | } |
| 14 | |
| 15 | print STDERR "mock command $0 called without -l, exiting\n"; |
| 16 | exit 255; |