Browse Source

dont use same variable name for local run and global success

Rodja Trappe 3 năm trước cách đây
mục cha
commit
c50754a282
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 5 5
      test_startup.sh

+ 5 - 5
test_startup.sh

@@ -27,8 +27,8 @@ check() {
     fi
 }
 
-exitcode=0
-check main.py || exitcode=1
-check examples.py || exitcode=1
-echo exit $exitcode
-test $exitcode -eq 0
+success=0
+check main.py || success=1
+check examples.py || success=1
+echo exit $success
+test $success -eq 0