Skip to content

Commit 36d857b

Browse files
authored
Merge pull request #1173 from mathbunnyru/asalikhov/fix_bashate
Fix bashate style issues
2 parents 150731d + 5b678ca commit 36d857b

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ repos:
1515
rev: 2.0.0
1616
hooks:
1717
- id: bashate
18+
args: ['--ignore=E006']
1819
- repo: https://gitlab.com/pycqa/flake8
1920
rev: 3.8.3
2021
hooks:

base-notebook/fix-permissions

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@
1818
set -e
1919

2020
for d in "$@"; do
21-
find "$d" \
22-
! \( \
23-
-group $NB_GID \
24-
-a -perm -g+rwX \
25-
\) \
26-
-exec chgrp $NB_GID {} \; \
27-
-exec chmod g+rwX {} \;
28-
# setuid,setgid *on directories only*
29-
find "$d" \
30-
\( \
31-
-type d \
32-
-a ! -perm -6000 \
33-
\) \
34-
-exec chmod +6000 {} \;
21+
find "$d" \
22+
! \( \
23+
-group $NB_GID \
24+
-a -perm -g+rwX \
25+
\) \
26+
-exec chgrp $NB_GID {} \; \
27+
-exec chmod g+rwX {} \;
28+
# setuid, setgid *on directories only*
29+
find "$d" \
30+
\( \
31+
-type d \
32+
-a ! -perm -6000 \
33+
\) \
34+
-exec chmod +6000 {} \;
3535
done

minimal-notebook/hooks/run_hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
4242
\`\`\`
4343
$(docker run --rm ${IMAGE_NAME} apt list --installed)
4444
\`\`\`
45-
EOF
45+
EOF

r-notebook/hooks/run_hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
5252
\`\`\`
5353
$(docker run --rm ${IMAGE_NAME} apt list --installed)
5454
\`\`\`
55-
EOF
55+
EOF

tensorflow-notebook/hooks/run_hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ $(docker run --rm ${IMAGE_NAME} conda list)
4242
\`\`\`
4343
$(docker run --rm ${IMAGE_NAME} apt list --installed)
4444
\`\`\`
45-
EOF
45+
EOF

0 commit comments

Comments
 (0)