Skip to content

Commit

Permalink
remove unecessary quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
Soubinan committed Nov 3, 2024
1 parent c560376 commit 0f8b94b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __layout.k
Original file line number Diff line number Diff line change
Expand Up @@ -1046,15 +1046,15 @@ printf '+-----------------------------------+\\n'
printf '| %-33s |\\n' '${_app_name} is listening on'

while read -r ip; do
printf '| %-33s |\\n' \" => $ip\"
printf '| %-33s |\\n' " => $ip"
done <<< $ips

printf '+------------+----------------------+\\n'
printf '| %-10s | %-20s |\\n' 'Ports' 'Process'
printf '+------------+----------------------+\\n'

while read -r port; do
application=$(ss -lptn \"sport = :$port\" | tail -n +2 | awk '{print $6}' | cut -d'\"' -f2 | sort -u)
application=$(ss -lptn "(sport = :$port)" | tail -n +2 | awk '{print $6}' | cut -d'"' -f2 | sort -u)
printf '| %-10s | %-20s |\\n' $port $application
done <<< $ports

Expand Down

0 comments on commit 0f8b94b

Please sign in to comment.