firejail/contrib
Kelvin M. Klann 53ff8e0ad9 build: sort.py: strip trailing whitespace in all lines
Currently the output is mangled if the last item on the line contains
trailing whitespace and is moved when sorting.

So remove trailing whitespace in all lines (that is, not just in lines
containing supported commands).

Leave leading whitespace as is for now since it could potentially be
used for indentation.

Before:

    $ printf '# hello world  \nprivate-bin a,b  \nprivate-bin b,a  \nprivate-bin  a,b\n' \
      >foo.profile
    $ ./contrib/sort.py -n foo.profile | tr ' ' .
    sort.py:.checking.1.profile(s)...
    foo.profile:3:-private-bin.b,a..
    foo.profile:3:+private-bin.a..,b

After:

    $ printf '# hello world  \nprivate-bin a,b  \nprivate-bin b,a  \n' \
      >foo.profile
    $ ./contrib/sort.py -n foo.profile | tr ' ' .
    sort.py:.checking.1.profile(s)...
    foo.profile:1:-#.hello.world..
    foo.profile:1:+#.hello.world
    foo.profile:2:-private-bin.a,b..
    foo.profile:2:+private-bin.a,b
    foo.profile:3:-private-bin.b,a..
    foo.profile:3:+private-bin.a,b
2024-12-05 04:53:35 -03:00
..
syntax feature: add notpm command & keep tpm devices in private-dev (#6390) 2024-07-09 01:43:55 +00:00
vim/ftdetect contrib/vim: match profile files more broadly 2023-06-10 14:16:41 -03:00
fix_private-bin.py fix spelling (#4573) 2021-09-22 23:05:33 +02:00
fj-mkdeb.py update copyright 2024 2024-01-12 11:23:22 -05:00
fjclip.py update copyright 2024 2024-01-12 11:23:22 -05:00
fjdisplay.py update copyright 2024 2024-01-12 11:23:22 -05:00
fjresize.py update copyright 2024 2024-01-12 11:23:22 -05:00
gdb-firejail.sh update copyright 2024 2024-01-12 11:23:22 -05:00
jail_prober.py update copyright 2024 2024-01-12 11:23:22 -05:00
sort.py build: sort.py: strip trailing whitespace in all lines 2024-12-05 04:53:35 -03:00
syscalls.sh update copyright 2024 2024-01-12 11:23:22 -05:00
update_deb.sh build: use generic wildcard on package install 2024-02-29 07:52:33 -03:00