Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 3 CLI issues #82

Closed
wants to merge 4 commits into from
Closed

Fix 3 CLI issues #82

wants to merge 4 commits into from

Conversation

hierynomus
Copy link
Contributor

  • The CLI did not install on SUSE Linux Enterprise
  • The CLI topic --offset command failed due to offset being larger than int32
  • The CLI required sudo if no explicit location was given and the implicit one wasn't writeable

@@ -21,6 +21,8 @@ function error() {

if [[ "$OSTYPE" == "linux-gnu"* ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
if [[ "$OSTYPE" == "linux"* ]]; then

Why not just to adjust the original if ?

Signed-off-by: Jeroen van Erp <[email protected]>
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
OS=linux
elif [[ "$OSTYPE" == "linux" ]]; then
if [[ "$OSTYPE" == "linux" ]]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [[ "$OSTYPE" == "linux" ]]; then
if [[ "$OSTYPE" == "linux"* ]]; then

To catch both "linux" and "linux-gnu"*

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤦 Oops

@hierynomus hierynomus closed this Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants