Skip to content

Commit

Permalink
add Trio get machine-id with new line
Browse files Browse the repository at this point in the history
  • Loading branch information
doroved committed Mar 23, 2024
1 parent cdb1d57 commit 1babaec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
run: cat /var/lib/dbus/machine-id
- name: hostnamectl status Machine ID
run: hostnamectl status | awk '/Machine ID:/ {print $3}'
- name: Trio get machine-id
- name: Trio get machine-id with new line
run: hostnamectl status | awk '/Machine ID:/ {print $3}'; cat /var/lib/dbus/machine-id 2>/dev/null; cat /etc/machine-id 2>/dev/null;
- name: Trio get machine-id with "|"
run: |
{ hostnamectl status | awk '/Machine ID:/ {printf $3"|"}'; cat /var/lib/dbus/machine-id 2>/dev/null; cat /etc/machine-id 2>/dev/null; } | paste -sd '|' | tr '|' '\n' | sort | uniq | tr '\n' '|'
- name: Get sudo lshw
Expand Down

0 comments on commit 1babaec

Please sign in to comment.