Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
andyone committed Jan 9, 2022
1 parent 2bca886 commit 8d0d5b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SOURCES/web-utils
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ showCSR() {
doExit 1
fi

subject=$(grep 'Subject:' "$tmp_file" | cut -f1 -d':' | sed 's/^ \+//')
subject=$(grep 'Subject:' "$tmp_file" | sed 's/^ *Subject: //')
country=$(echo "$subject" | cut -f1 -d',' | cut -f2 -d'=' | sed 's/^ \+//')
state=$(echo "$subject" | cut -f2 -d',' | cut -f2 -d'=' | sed 's/^ \+//')
city=$(echo "$subject" | cut -f3 -d',' | cut -f2 -d'=' | sed 's/^ \+//')
Expand Down

0 comments on commit 8d0d5b5

Please sign in to comment.