diff --git a/expect_uml b/expect_uml index f8cb607..0a5f9c1 100755 --- a/expect_uml +++ b/expect_uml @@ -15,7 +15,7 @@ my $preserve_permissions = "$ARGV[4]"; my $end = 6; my $filesystem; -for ( 5 .. $end ) { +for ( 5 .. $#ARGV ) { if ( $_ == 5 ) { $filesystem = "$ARGV[5]"; # What to do with the rieserfs command