Skip to content

Commit 28dfbb5

Browse files
committed
Remove the executable flag from the json files
1 parent 3569c70 commit 28dfbb5

File tree

4 files changed

+11
-0
lines changed

4 files changed

+11
-0
lines changed

objects/ip-port/definition.json

100755100644
File mode changed.

objects/person/definition.json

100755100644
File mode changed.

objects/url/definition.json

100755100644
File mode changed.

validate_all.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ if ! [ $diffs -eq 0 ]; then
1212
exit 1
1313
fi
1414

15+
# remove the exec flag on the json files
16+
find -name "*.json" -exec chmod -x "{}" \;
17+
18+
diffs=`git status --porcelain | wc -l`
19+
20+
if ! [ $diffs -eq 0 ]; then
21+
echo "Please make sure you run remove the executable flag on the json files before commiting: find -name "*.json" -exec chmod -x \"{}\" \\;"
22+
exit 1
23+
fi
24+
25+
1526
for dir in objects/*/definition.json
1627
do
1728
echo -n "${dir}: "

0 commit comments

Comments
 (0)