mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 06:52:56 +00:00
Merge pull request #1173 from mathbunnyru/asalikhov/fix_bashate
Fix bashate style issues
This commit is contained in:
@@ -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
|
||||
EOF
|
||||
|
@@ -52,4 +52,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
|
||||
\`\`\`
|
||||
$(docker run --rm ${IMAGE_NAME} apt list --installed)
|
||||
\`\`\`
|
||||
EOF
|
||||
EOF
|
||||
|
@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
|
||||
\`\`\`
|
||||
$(docker run --rm ${IMAGE_NAME} apt list --installed)
|
||||
\`\`\`
|
||||
EOF
|
||||
EOF
|
||||
|
Reference in New Issue
Block a user