Skip to content

Commit 9005291

Browse files
daquexianhouseroad
authored andcommitted
Fix wrong condition and add --user in update_doc.sh (onnx#2050)
1 parent a4f44a2 commit 9005291

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/update_doc.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ if [ -z $python_exist ]; then
88
exit 1
99
fi
1010

11-
if [ -f "onnx/defs/gen_doc.py" ]; then
11+
if [ ! -f "onnx/defs/gen_doc.py" ]; then
1212
echo "Please run this script in the ONNX root folder."
13+
exit 1
1314
fi
1415

1516
set -e
1617

1718
echo -e "===> recompile onnx"
18-
python setup.py develop
19+
python setup.py develop --user
1920

2021
echo -e "\n===> regenerate test data from node test"
2122
python onnx/backend/test/cmd_tools.py generate-data

0 commit comments

Comments
 (0)