diff options
-rwxr-xr-x | ranger/data/generate.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/data/generate.py b/ranger/data/generate.py index a0ed2b9b..195f3559 100755 --- a/ranger/data/generate.py +++ b/ranger/data/generate.py @@ -24,7 +24,9 @@ if __name__ == '__main__': for line in open(len(sys.argv) > 1 and sys.argv[1] or "mime.types"): if len(line) > 3 and line[0] != '#' and ('\t' in line or ' ' in line): - name, *extensions = line.split() + arr = line.split() + name = arr[0] + extensions = arr[1:] for ext in extensions: table[ext] = name |