mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-24 20:22:11 +03:00
Using elsif instead of more expensive if.
This commit is contained in:
parent
388442cf0c
commit
c42b447115
@ -345,19 +345,19 @@ if ($ARGV[0] eq 'list') {
|
||||
open I, myin($ARGV[1]).'|';
|
||||
list $ARGV[1];
|
||||
exit 0;
|
||||
} if ($ARGV[0] eq 'copyout') {
|
||||
} elsif ($ARGV[0] eq 'copyout') {
|
||||
open I, myin($ARGV[1])."|";
|
||||
copyout ($ARGV[2], $ARGV[3]);
|
||||
exit 0;
|
||||
} if ($ARGV[0] eq 'rm') {
|
||||
} elsif ($ARGV[0] eq 'rm') {
|
||||
open I, myin($ARGV[1])."|";
|
||||
rm ($ARGV[1], $ARGV[2]);
|
||||
exit 0;
|
||||
} if ($ARGV[0] eq 'rmdir') {
|
||||
} elsif ($ARGV[0] eq 'rmdir') {
|
||||
exit 0;
|
||||
} if ($ARGV[0] eq 'mkdir') {
|
||||
} elsif ($ARGV[0] eq 'mkdir') {
|
||||
exit 0;
|
||||
} if ($ARGV[0] eq 'copyin') {
|
||||
} elsif ($ARGV[0] eq 'copyin') {
|
||||
copyin ($ARGV[1], $ARGV[2], $ARGV[3]);
|
||||
exit 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user