Handle user input if first PMC line is empty

Change-Id: I456fd9360a4a8506fadcc975e71da112a26b07ae
This commit is contained in:
gobhardw
2023-06-20 19:18:59 +05:30
committed by Ammar Elwazir
parent ad68526537
commit c6729adaed
4 changed files with 20 additions and 6 deletions
+4
View File
@@ -256,6 +256,10 @@ PMC_LINES=()
if [ -n "$COUNTERS_PATH" ]; then
input=$COUNTERS_PATH
while IFS= read -r line || [[ -n "$line" ]]; do
#skip empty lines
if [[ -z "$line" ]]; then
continue
fi
# if in att mode, only add the first line
if [[ ! -n "$PMC_LINES" ]] || [[ ! -n "$ATT_ARGV" ]]; then
PMC_LINES+=( "$line" )