From e9bf2663dd8af5081657f7e8a51eedbcdbebdef1 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Sat, 3 Feb 2024 17:14:31 +0100 Subject: [PATCH] fix linting Signed-off-by: Luca Di Maio --- distrobox-create | 2 +- distrobox-enter | 2 +- distrobox-generate-entry | 2 +- distrobox-init | 2 +- distrobox-list | 2 +- distrobox-rm | 2 +- distrobox-stop | 2 +- distrobox-upgrade | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/distrobox-create b/distrobox-create index 853bd64f0d..a0430ebff1 100755 --- a/distrobox-create +++ b/distrobox-create @@ -120,7 +120,7 @@ for config_file in ${config_files}; do # Shellcheck will give error for sourcing a variable file as it cannot follow # it. We don't care so let's disable this linting for now. # shellcheck disable=SC1090 - [ -e "${config_file}" ] && . "$(realpath "${config_file}")" + [ -e "${config_file}" ] && . "$(realpath "${config_file}")" done # If we're running this script as root -- as in logged in in the shell as root # user, and not via SUDO/DOAS --, we don't need to set distrobox_sudo_program diff --git a/distrobox-enter b/distrobox-enter index 497710f173..68f9cb4461 100755 --- a/distrobox-enter +++ b/distrobox-enter @@ -100,7 +100,7 @@ for config_file in ${config_files}; do # Shellcheck will give error for sourcing a variable file as it cannot follow # it. We don't care so let's disable this linting for now. # shellcheck disable=SC1090 - [ -e "${config_file}" ] && . "$(realpath "${config_file}")" + [ -e "${config_file}" ] && . "$(realpath "${config_file}")" done # If we're running this script as root -- as in, logged in in the shell as root # user, and not via SUDO/DOAS --, we don't need to set distrobox_sudo_program diff --git a/distrobox-generate-entry b/distrobox-generate-entry index 7aac99d296..c641f5864e 100755 --- a/distrobox-generate-entry +++ b/distrobox-generate-entry @@ -68,7 +68,7 @@ for config_file in ${config_files}; do # Shellcheck will give error for sourcing a variable file as it cannot follow # it. We don't care so let's disable this linting for now. # shellcheck disable=SC1090 - [ -e "${config_file}" ] && . "$(realpath "${config_file}")" + [ -e "${config_file}" ] && . "$(realpath "${config_file}")" done # Print usage to stdout. diff --git a/distrobox-init b/distrobox-init index 7024a16a8a..03fdd27950 100755 --- a/distrobox-init +++ b/distrobox-init @@ -2004,7 +2004,7 @@ if [ -n "${DISTROBOX_HOST_HOME-}" ] && [ -d "/etc/skel" ]; then cp "${skel_file}" "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}${base_file_name}" fi done - chown -R "${container_user_uid}":"${container_user_gid}" "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}" + chown -R "${container_user_uid}":"${container_user_gid}" "${container_user_home}/${file_path_for_home:+"${file_path_for_home}"/}" fi ############################################################################### diff --git a/distrobox-list b/distrobox-list index 0e7a101836..5dc9375367 100755 --- a/distrobox-list +++ b/distrobox-list @@ -67,7 +67,7 @@ for config_file in ${config_files}; do # Shellcheck will give error for sourcing a variable file as it cannot follow # it. We don't care so let's disable this linting for now. # shellcheck disable=SC1090 - [ -e "${config_file}" ] && . "$(realpath "${config_file}")" + [ -e "${config_file}" ] && . "$(realpath "${config_file}")" done # If we're running this script as root -- as in logged in in the shell as root # user, and not via SUDO/DOAS --, we don't need to set distrobox_sudo_program diff --git a/distrobox-rm b/distrobox-rm index 51c14723ed..3e81bed861 100755 --- a/distrobox-rm +++ b/distrobox-rm @@ -77,7 +77,7 @@ for config_file in ${config_files}; do # Shellcheck will give error for sourcing a variable file as it cannot follow # it. We don't care so let's disable this linting for now. # shellcheck disable=SC1090 - [ -e "${config_file}" ] && . "$(realpath "${config_file}")" + [ -e "${config_file}" ] && . "$(realpath "${config_file}")" done # If we're running this script as root - as in logged in in the shell as root # user, and not via SUDO/DOAS -, we don't need to set distrobox_sudo_program diff --git a/distrobox-stop b/distrobox-stop index 70a20ba83d..cb43a5a2b1 100755 --- a/distrobox-stop +++ b/distrobox-stop @@ -75,7 +75,7 @@ for config_file in ${config_files}; do # Shellcheck will give error for sourcing a variable file as it cannot follow # it. We don't care so let's disable this linting for now. # shellcheck disable=SC1090 - [ -e "${config_file}" ] && . "$(realpath "${config_file}")" + [ -e "${config_file}" ] && . "$(realpath "${config_file}")" done # If we're running this script as root - as in logged in in the shell as root # user, and not via SUDO/DOAS -, we don't need to set distrobox_sudo_program diff --git a/distrobox-upgrade b/distrobox-upgrade index 3bdb661147..8aedd0f72f 100755 --- a/distrobox-upgrade +++ b/distrobox-upgrade @@ -62,7 +62,7 @@ for config_file in ${config_files}; do # Shellcheck will give error for sourcing a variable file as it cannot follow # it. We don't care so let's disable this linting for now. # shellcheck disable=SC1090 - [ -e "${config_file}" ] && . "$(realpath "${config_file}")" + [ -e "${config_file}" ] && . "$(realpath "${config_file}")" done # If we're running this script as root - as in logged in in the shell as root # user, and not via SUDO/DOAS -, we don't need to set distrobox_sudo_program