Explorar o código

schedulers.sh: Use integer comparison for $?.

Ludovic Courtès %!s(int64=14) %!d(string=hai) anos
pai
achega
ad65bc046d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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