Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Some further simplifications in create_config
Browse files Browse the repository at this point in the history
  • Loading branch information
kduyvesteyn committed May 24, 2018
1 parent fc92135 commit 75c2daa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions bin/create_config.pl
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ sub usage {
my @usage = (
"Usage: $0",
"",
"Advanced usage:",
"$0 REQUIRED_ARGUMENTS [-run]",
"",
"Required INI file:",
"",
"\t-i, --inifile settings.ini",
Expand All @@ -93,8 +90,10 @@ sub getIniFiles {
my ($iniDir) = @_;

-d $iniDir or die "Can't get INI files from $iniDir: $!";
my @iniFiles = File::Find::Rule->file() #
->name("*.ini") #
->in($iniDir); #
my @iniFiles = File::Find::Rule->file()
->name("*.ini")
->maxdepth(1)
->in($iniDir);

return \@iniFiles;
}

0 comments on commit 75c2daa

Please sign in to comment.