Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ install_otp_linux() {
esac

id=$(grep '^ID=' /etc/os-release | cut -d '=' -f 2)
if [ "${id}" != ubuntu ]; then
if [[ "${id}" != ubuntu || "${id}" != pop ]]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please test this version?

Suggested change
if [[ "${id}" != ubuntu || "${id}" != pop ]]; then
if [ "${id}" != ubuntu ] && [ "${id}" != pop ]; then

We should fail if both do not match (the current version seems to support everything). And we should stick with sh instead of bash. Thanks!

echo $id is not supported
exit 1
fi
Expand Down