summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/MDK/Common/System.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MDK/Common/System.pm b/lib/MDK/Common/System.pm
index c0be561..e98b3c5 100644
--- a/lib/MDK/Common/System.pm
+++ b/lib/MDK/Common/System.pm
@@ -459,7 +459,7 @@ sub quoteForSh {
sub setVarsInShMode {
my ($file, $mod, $l, @fields) = @_;
- @fields = keys %$l unless @fields;
+ @fields = sort keys %$l unless @fields;
my $string = join('',
map { "$_=" . quoteForSh($l->{$_}) . "\n" } grep { $l->{$_} } @fields
);