style: fix indents, add .editorconfig (#36)

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0 2024-08-17 14:34:22 +02:00 committed by GitHub
parent 1ef1f1be2a
commit bd5be1fa35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 3 deletions

13
.editorconfig Normal file
View File

@ -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

View File

@ -34,9 +34,9 @@ function check_folder_perms_and_create() {
status_msg "Check folders permissions ..." status_msg "Check folders permissions ..."
for folder in "${REQUIRED_FOLDERS[@]}"; do for folder in "${REQUIRED_FOLDERS[@]}"; do
if [ ! -d "$folder" ]; then if [ ! -d "$folder" ]; then
mkdir "$folder" mkdir "$folder"
fi fi
if [[ $(stat -c "%U" "${folder}") != "printer" ]]; then if [[ $(stat -c "%U" "${folder}") != "printer" ]]; then
status_msg "chown for user: 'printer' on folder: ${folder}" status_msg "chown for user: 'printer' on folder: ${folder}"