diff --git a/ref.txt b/ref.txt index a9735e1..bfb2326 100644 --- a/ref.txt +++ b/ref.txt @@ -1,3 +1,3 @@ 3ZSBW4J FP7CC72 -FFMYF82 +FFMYF82 \ No newline at end of file diff --git a/script.sh b/script.sh index 2d965d0..49010a1 100755 --- a/script.sh +++ b/script.sh @@ -1,6 +1,6 @@ #!/bin/bash -while read tmp; do +while read tmp || [ -n "$tmp" ]; do node index.js $tmp done < ref.txt