Explorar el Código

- additional small beautification

Jan Janak hace 22 años
padre
commit
543612ff4c
Se han modificado 1 ficheros con 5 adiciones y 4 borrados
  1. 5 4
      scripts/sc

+ 5 - 4
scripts/sc

@@ -826,14 +826,15 @@ case $1 in
 		    loops=$2;
 		fi
 		clear
-		while [ $loops -gt $attempt ]; do
-			attempt=`expr $attempt + 1`
+		while [ $loops -ne $attempt ] ; do
+			attempt=$(($attempt + 1))
 			#clear
 			tput cup 0 0
 			print_stats $name $path $attempt
-			if [ $loops -gt $attempt ]; then
-			    sleep $WATCH_PERIOD
+			if [ $loops -ne $attempt ] ; then
+				sleep $WATCH_PERIOD
 			fi
+				
 		done
 		rm $path
 		exit 0