[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][lintian/lintian][master] command-with-path-in-maintainer-script: recommend command -v (standard...



Title: GitLab

Louis-Philippe Véronneau pushed to branch master at lintian / lintian

Commits:

  • fe6d9d2e
    by наб at 2024-11-02T20:33:04+01:00
    command-with-path-in-maintainer-script: recommend command -v (standard built-in) instead of which (some program)
    

1 changed file:

Changes:

  • tags/c/command-with-path-in-maintainer-script.tag
    ... ... @@ -8,7 +8,7 @@ Explanation: The indicated program run in a maintainer script has a prepended
    8 8
      replacement version of a command for some local reason.
    
    9 9
      .
    
    10 10
      If the path is used to test a program for existence, please use <code>if
    
    11
    - which $program > /dev/null; then …</code>.
    
    11
    + command -v $program > /dev/null; then …</code>.
    
    12 12
      .
    
    13 13
      If you intend to override this tag, please make sure that you are in
    
    14 14
      control of the installation path of the according program and that
    


  • Reply to: