Browse Source

Do not sort keys when reading

For purpose of rewriting user's INI, we don't want to mess it up more
than is necessary.
Alois Mahdal 7 years ago
parent
commit
1d59219fc3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/include/ini.sh

+ 1
- 1
src/include/ini.sh View File

90
     # List keys from a section
90
     # List keys from a section
91
     #
91
     #
92
     local sct=$1    # section of interest
92
     local sct=$1    # section of interest
93
-    _ini_grepsec "$sct" | cut -d= -f1 | sort | uniq
93
+    _ini_grepsec "$sct" | cut -d= -f1 | awk '!x[$0]++'
94
 }
94
 }
95
 
95
 
96
 _ini_maybe_expand() {
96
 _ini_maybe_expand() {