We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48d8956 commit 31f652fCopy full SHA for 31f652f
check-file-format.sh
@@ -22,7 +22,10 @@ done
22
#See if the lines a. have a '| desc' bit that is not zero, and if they
23
#start with the next PID in order.
24
pid=$(($2))
25
-while read l <&6; do
+# https://stackoverflow.com/questions/4165135/how-to-use-while-read-bash-to-read-the-last-line-in-a-file-if-there-s-no-new
26
+DONE=false
27
+until $DONE; do
28
+ read l <&6 || DONE=true
29
if [ -n "$l" ]; then
30
#Split the line into pid and desc
31
rpid="${l% |*}"
0 commit comments