]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
scripts/update-authors.sh nit: avoid confusing changes in ordering docs-develop-rele-qb6wtt/deployments/2974
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 9 Jan 2024 07:38:24 +0000 (08:38 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 9 Jan 2024 07:38:24 +0000 (08:38 +0100)
scripts/update-authors.sh

index fe1d85791a0567a300e0e648f5bf8143fe1cc997..23261f0da12a3ff1178c84920fcfa332c4d7acc8 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/bash
 # SPDX-License-Identifier: GPL-3.0-or-later
+
+# avoid confusing changes in ordering
+if ! locale | grep -q '^LC_COLLATE=.*\.UTF-8'; then
+       echo 'Error: you need to run this script with an .UTF-8 locale.'
+       exit 2
+fi
+
 set -o nounset -o xtrace
 
 function spdx_originator_to_authors {