diff --git a/config/makeConfigAppInclude.pl b/config/makeConfigAppInclude.pl index a1ee0750..f1f947e0 100644 --- a/config/makeConfigAppInclude.pl +++ b/config/makeConfigAppInclude.pl @@ -70,6 +70,8 @@ foreach $file (@files) { $post = $base . $post; } } + + $prefix =~ s/^\s+|\s+$//g; # strip leading and trailing whitespace. $applications{$prefix} = $post; if ( -d "$post") { #check that directory exists print OUT "\n"; diff --git a/config/makeIocCdCommands.pl b/config/makeIocCdCommands.pl index 87e10359..8637e478 100644 --- a/config/makeIocCdCommands.pl +++ b/config/makeIocCdCommands.pl @@ -72,6 +72,8 @@ foreach $file (@files) { $post = $base . $post; } } + + $prefix =~ s/^\s+|\s+$//g; # strip leading and trailing whitespace. $applications{$prefix} = $post; $app = lc($prefix); if ( -d "$post") { #check that directory exists