diff --git a/run.sh b/run.sh index bbb20d5..4911977 100644 --- a/run.sh +++ b/run.sh @@ -1,4 +1,5 @@ npm start & cd src/backend -read -e -p "Provide Log file: " log -node logreader.js $log \ No newline at end of file +for fname in "$@"; do + node logreader.js "$fname" +done \ No newline at end of file diff --git a/run.sh.bak b/run.sh.bak index 8aaded8..79cf691 100644 --- a/run.sh.bak +++ b/run.sh.bak @@ -1,3 +1,5 @@ npm start & cd src/backend -node logreader.js $1 \ No newline at end of file +for fname in "$@"; do + node logreader.js $fname +done \ No newline at end of file