Skip to content

Commit

Permalink
Merge pull request #38 from GSA-TTS/fix-control-status
Browse files Browse the repository at this point in the history
Use awk to output the last field rather than the 5th
  • Loading branch information
rahearn authored Sep 12, 2024
2 parents 9e3ccd1 + ba7601c commit e9d5803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/control-status
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ echo "==========================================================================
echo "Gap report for /app/docs/$markdown"
echo "==========================================================================="

result=`grep -R "Implementation Status:" /app/docs/"$markdown"/* | cut -d':' -f1,3 | cut -d'/' -f5`
result=`grep -R "Implementation Status:" /app/docs/"$markdown"/* | cut -d':' -f1,3 | awk -F'/' '{print $NF}'`
if [ "$status" != "" ]; then
result=`grep $status <<< $result`
elif [ "$ignored" != "" ]; then
Expand Down

0 comments on commit e9d5803

Please sign in to comment.