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}"