From 093848dae2c1e94b24f763a81062febd0a359b9e Mon Sep 17 00:00:00 2001 From: dw-0 Date: Sat, 17 Aug 2024 14:05:16 +0200 Subject: [PATCH] style: fix indents, add .editorconfig Signed-off-by: Dominik Willner --- .editorconfig | 13 +++++++++++++ scripts/start.sh | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..447fff2 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +# http://editorconfig.org + +root = true + +[*] +charset = utf-8 +end_of_line = lf + +[*.{sh,yaml}] +indent_style = space +indent_size = 2 +insert_final_newline = true +trim_trailing_whitespace = true diff --git a/scripts/start.sh b/scripts/start.sh index 119f02c..ce8e452 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -34,9 +34,9 @@ function check_folder_perms_and_create() { status_msg "Check folders permissions ..." for folder in "${REQUIRED_FOLDERS[@]}"; do - if [ ! -d "$folder" ]; then - mkdir "$folder" - fi + if [ ! -d "$folder" ]; then + mkdir "$folder" + fi if [[ $(stat -c "%U" "${folder}") != "printer" ]]; then status_msg "chown for user: 'printer' on folder: ${folder}"