Skip to content

Commit

Permalink
style: fix indents, add .editorconfig (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Willner <[email protected]>
  • Loading branch information
dw-0 authored Aug 17, 2024
1 parent 1ef1f1b commit bd5be1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit bd5be1f

Please sign in to comment.