Skip to content

Use 'command -v' over 'which' #586

Open

Description

@hendrik-donner

SetupWizard calls which on systemctl and getenforce (https://github.com/nextcloud/notify_push/blob/main/lib/SetupWizard.php#L75), but which isn't necessary installed. Wasn't on my server.

Usually command -v is preferred in scripting, it's at least POSIX.

Activity

  1. added
    bug
    on Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions