From 6648a1e9688b4cdd971d6c68b568f4fd8b43ce15 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Sun, 19 Feb 2023 15:20:57 -0300 Subject: *.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' --- contrib/gdb-firejail.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib/gdb-firejail.sh') diff --git a/contrib/gdb-firejail.sh b/contrib/gdb-firejail.sh index b00cc65bc..032b031f0 100755 --- a/contrib/gdb-firejail.sh +++ b/contrib/gdb-firejail.sh @@ -13,11 +13,11 @@ set -x # setuid firejail process from the absolute beginning. if [ -z "${1##*/firejail}" ]; then - FIREJAIL=$1 + FIREJAIL=$1 else - # First argument is not named firejail, then add default unless environment - # variable already set. - set -- ${FIREJAIL:=$(command -v firejail)} "$@" + # First argument is not named firejail, then add default unless environment + # variable already set. + set -- ${FIREJAIL:=$(command -v firejail)} "$@" fi bash -c "kill -STOP \$\$; exec \"\$0\" \"\$@\"" "$@" & -- cgit v1.2.3-54-g00ecf