Commit 36d857bb authored by Romain's avatar Romain Committed by GitHub

Merge pull request #1173 from mathbunnyru/asalikhov/fix_bashate

Fix bashate style issues
parents 150731d3 5b678ca4
......@@ -15,6 +15,7 @@ repos:
rev: 2.0.0
hooks:
- id: bashate
args: ['--ignore=E006']
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.3
hooks:
......
......@@ -18,18 +18,18 @@
set -e
for d in "$@"; do
find "$d" \
! \( \
-group $NB_GID \
-a -perm -g+rwX \
\) \
-exec chgrp $NB_GID {} \; \
-exec chmod g+rwX {} \;
# setuid,setgid *on directories only*
find "$d" \
\( \
-type d \
-a ! -perm -6000 \
\) \
-exec chmod +6000 {} \;
find "$d" \
! \( \
-group $NB_GID \
-a -perm -g+rwX \
\) \
-exec chgrp $NB_GID {} \; \
-exec chmod g+rwX {} \;
# setuid, setgid *on directories only*
find "$d" \
\( \
-type d \
-a ! -perm -6000 \
\) \
-exec chmod +6000 {} \;
done
......@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
EOF
......@@ -52,4 +52,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
EOF
......@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
\`\`\`
$(docker run --rm ${IMAGE_NAME} apt list --installed)
\`\`\`
EOF
\ No newline at end of file
EOF
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