add sort to jsgettext.pl

the output from find may not be stable (depending on the filesystem),
and is surely not the same on two different systems,
so for consistency in the po files, we sort the output from find with
sort

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2017-01-11 11:38:19 +01:00 committed by Dietmar Maurer
parent 833fc26e5d
commit 477c5e718e

View File

@ -12,7 +12,7 @@ die "no such directory\n" if ! -d $dir;
my $sources = [];
my $findcmd = ['find', $dir, '-name', '*.js'];
my $findcmd = [['find', $dir, '-name', '*.js'],['sort']];
PVE::Tools::run_command($findcmd, outfunc => sub {
my $line = shift;
next if $line =~ m|/pvemanagerlib.js$|;