aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/gdb-firejail.sh
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-19 15:20:57 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-20 17:39:31 -0300
commit6648a1e9688b4cdd971d6c68b568f4fd8b43ce15 (patch)
treec02435fcd62e431d1ecda9662e1a117c05c021ed /contrib/gdb-firejail.sh
parenttests: Fix mixed space/tabs indentation (diff)
downloadfirejail-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 'contrib/gdb-firejail.sh')
-rwxr-xr-xcontrib/gdb-firejail.sh8
1 files changed, 4 insertions, 4 deletions
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
13# setuid firejail process from the absolute beginning. 13# setuid firejail process from the absolute beginning.
14 14
15if [ -z "${1##*/firejail}" ]; then 15if [ -z "${1##*/firejail}" ]; then
16 FIREJAIL=$1 16 FIREJAIL=$1
17else 17else
18 # First argument is not named firejail, then add default unless environment 18 # First argument is not named firejail, then add default unless environment
19 # variable already set. 19 # variable already set.
20 set -- ${FIREJAIL:=$(command -v firejail)} "$@" 20 set -- ${FIREJAIL:=$(command -v firejail)} "$@"
21fi 21fi
22 22
23bash -c "kill -STOP \$\$; exec \"\$0\" \"\$@\"" "$@" & 23bash -c "kill -STOP \$\$; exec \"\$0\" \"\$@\"" "$@" &