Prechádzať zdrojové kódy

schedulers.sh: Use integer comparison for $?.

Ludovic Courtès 13 rokov pred
rodič
commit
ad65bc046d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      examples/scheduler/schedulers.sh

+ 1 - 1
examples/scheduler/schedulers.sh

@@ -17,7 +17,7 @@
 
 check_success()
 {
-    if [ $1 != 0 ] ; then
+    if [ $1 -ne 0 ] ; then
 	echo "failure" >&2
         exit $1
     fi