Skip to content

Commit e1df1db

Browse files
authored
Merge pull request #283 from vkucera/summarise
Add protection against missing lsb_release in the setup summary script
2 parents ea0f27f + e5821b7 commit e1df1db

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)