Skip to content

Commit e5821b7

Browse files
committed
Add protection against missing lsb_release in the setup summary script
1 parent 58a6223 commit e5821b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/troubleshooting/summarise_o2p_setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
# System info
66

7-
systemName=""
8-
user=""
7+
systemName="Failed to get"
8+
user="Failed to get"
99
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
10-
systemName="$(lsb_release -ds)"
10+
[[ -n "$(which lsb_release)" ]] && systemName="$(lsb_release -ds)"
1111
user="$(whoami)"
1212
elif [[ "$OSTYPE" == "darwin"* ]]; then
1313
systemName="$(sw_vers -productName) $(sw_vers -productVersion)"

0 commit comments

Comments
 (0)