Browse Source

fix push script

pikastech 3 years ago
parent
commit
63b3ef11d4
2 changed files with 2 additions and 1 deletions
  1. 0 0
      examples/unittest/test1.py
  2. 2 1
      port/linux/pkg-push.sh

+ 0 - 0
examples/unittest → examples/unittest/test1.py


+ 2 - 1
port/linux/pkg-push.sh

@@ -49,7 +49,8 @@ fi
 # check if test/python/$pkg folder is exit
 if [ -d "test/python/$pkg" ] ; then
 echo "$FLAG_INFO python test files added:"
-rm ../../examples/$pkg/* -rf
+rm ../../examples/$pkg -rf
+mkdir ../../examples/$pkg
 cp test/python/$pkg/*.py ../../examples/$pkg -r
 git add test/python/$pkg
 git add ../../examples/$pkg