Commit 5b678ca4 authored by Ayaz Salikhov's avatar Ayaz Salikhov

Fix bashate style issues

parent 150731d3
...@@ -15,6 +15,7 @@ repos: ...@@ -15,6 +15,7 @@ repos:
rev: 2.0.0 rev: 2.0.0
hooks: hooks:
- id: bashate - id: bashate
args: ['--ignore=E006']
- repo: https://gitlab.com/pycqa/flake8 - repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3 rev: 3.8.3
hooks: hooks:
......
...@@ -18,18 +18,18 @@ ...@@ -18,18 +18,18 @@
set -e set -e
for d in "$@"; do for d in "$@"; do
find "$d" \ find "$d" \
! \( \ ! \( \
-group $NB_GID \ -group $NB_GID \
-a -perm -g+rwX \ -a -perm -g+rwX \
\) \ \) \
-exec chgrp $NB_GID {} \; \ -exec chgrp $NB_GID {} \; \
-exec chmod g+rwX {} \; -exec chmod g+rwX {} \;
# setuid,setgid *on directories only* # setuid, setgid *on directories only*
find "$d" \ find "$d" \
\( \ \( \
-type d \ -type d \
-a ! -perm -6000 \ -a ! -perm -6000 \
\) \ \) \
-exec chmod +6000 {} \; -exec chmod +6000 {} \;
done done
...@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list) ...@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
\`\`\` \`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed) $(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\` \`\`\`
EOF EOF
\ No newline at end of file
...@@ -52,4 +52,4 @@ $(docker run --rm ${IMAGE_NAME} conda list) ...@@ -52,4 +52,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
\`\`\` \`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed) $(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\` \`\`\`
EOF EOF
\ No newline at end of file
...@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list) ...@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
\`\`\` \`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed) $(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\` \`\`\`
EOF EOF
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment