mirror of
https://github.com/fspc/gbootroot.git
synced 2025-03-04 11:53:26 -05:00
A better way to count ARGs.
This commit is contained in:
parent
a2d55f8d34
commit
b7ac1aa14d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user