Ver Fonte

- additional small beautification

Jan Janak há 22 anos atrás
pai
commit
543612ff4c
1 ficheiros alterados com 5 adições e 4 exclusões
  1. 5 4
      scripts/sc

+ 5 - 4
scripts/sc

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