diff options
author | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-02-19 15:20:57 -0300 |
---|---|---|
committer | Kelvin M. Klann <kmk3.code@protonmail.com> | 2023-02-20 17:39:31 -0300 |
commit | 6648a1e9688b4cdd971d6c68b568f4fd8b43ce15 (patch) | |
tree | c02435fcd62e431d1ecda9662e1a117c05c021ed /platform | |
parent | tests: Fix mixed space/tabs indentation (diff) | |
download | firejail-6648a1e9688b4cdd971d6c68b568f4fd8b43ce15.tar.gz firejail-6648a1e9688b4cdd971d6c68b568f4fd8b43ce15.tar.zst firejail-6648a1e9688b4cdd971d6c68b568f4fd8b43ce15.zip |
*.sh: use consistent indentation
Almost all of the shell scripts in the repository use tabs for
indentation (or have no indentation at all):
$ git grep -Il '^\t' -- '*.sh' | wc -l
19
$ git grep -Il '^ ' -- '*.sh' | wc -l
5
$ git grep -IL '^[ \t]' -- '*.sh' | wc -l
25
So do the same in the few shell scripts that currently use spaces for
indentation.
Except for the following file:
* platform/rpm/mkrpm.sh
Not sure if it's following a packaging-specific scheme, so just fix the
one indentation inconsistency in it and otherwise leave it as is for
now.
Command used to search for shell scripts using spaces for indentation:
$ git grep -In '^ ' -- '*.sh'
Diffstat (limited to 'platform')
-rwxr-xr-x | platform/rpm/mkrpm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/rpm/mkrpm.sh b/platform/rpm/mkrpm.sh index 34104c7b2..d32ccd360 100755 --- a/platform/rpm/mkrpm.sh +++ b/platform/rpm/mkrpm.sh | |||
@@ -31,7 +31,7 @@ fi | |||
31 | tmpdir=$(mktemp -d) | 31 | tmpdir=$(mktemp -d) |
32 | mkdir -p ${tmpdir}/{BUILD,RPMS,SOURCES,SPECS,SRPMS} | 32 | mkdir -p ${tmpdir}/{BUILD,RPMS,SOURCES,SPECS,SRPMS} |
33 | function cleanup { | 33 | function cleanup { |
34 | rm -rf ${tmpdir} | 34 | rm -rf ${tmpdir} |
35 | } | 35 | } |
36 | trap cleanup EXIT | 36 | trap cleanup EXIT |
37 | 37 | ||