From c8c69ca2f615e55c93d2937b3dba672cf59abb46 Mon Sep 17 00:00:00 2001 From: rusty-snake <41237666+rusty-snake@users.noreply.github.com> Date: Thu, 21 Apr 2022 21:24:44 +0200 Subject: firejail-welcome.sh fixes - fix shellcheck - break long lines - remove unseless $? check - remove needless \\ --- src/firecfg/firejail-welcome.sh | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'src/firecfg/firejail-welcome.sh') diff --git a/src/firecfg/firejail-welcome.sh b/src/firecfg/firejail-welcome.sh index a3e9713e4..b70d7861d 100755 --- a/src/firecfg/firejail-welcome.sh +++ b/src/firecfg/firejail-welcome.sh @@ -15,7 +15,7 @@ PROGRAM=$1 SYSCONFDIR=$2 -if ! command -v $PROGRAM >/dev/null; then +if ! command -v "$PROGRAM" >/dev/null; then echo "Please install $PROGRAM." exit 1 fi @@ -37,8 +37,10 @@ enable_nonewprivs=false read -r -d $'\0' MSG_INTRO <Welcome to Firejail! - -This guide will walk you through some of the most common sandbox customizations. At the end of the guide you'll have the option to save your changes in Firejail's global config file at /etc/firejail/firejail.config. A copy of the original file is stored as /etc/firejal/firejail.config-. +This guide will walk you through some of the most common sandbox customizations. At the end of the +guide you'll have the option to save your changes in Firejail's global config file at +/etc/firejail/firejail.config. A copy of the original file is stored as +/etc/firejal/firejail.config-. Please note that running this script a second time can set new options, but does not clear options set in a previous run. @@ -62,7 +64,6 @@ EOM if $PROGRAM --title="$TITLE" --question --ellipsize --text="$MSG_Q_RUN_FIRECFG"; then run_firecfg=true fi -[[ $? -eq 1 ]] && exit 0 #****************************************************** # U2F @@ -156,43 +157,41 @@ if $PROGRAM --title="$TITLE" --question --ellipsize --text="$MSG_Q_SECCOMP"; the sed_scripts+=("-e s/# seccomp-error-action EPERM/seccomp-error-action kill/") fi - - - #****************************************************** # root #****************************************************** read -r -d $'\0' MSG_RUN <