Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Authenticator Authenticator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • World
  • AuthenticatorAuthenticator
  • Merge requests
  • !211

build: fix a warning on non-GNU distributions

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Jan Beich requested to merge jbeich/Authenticator:ash into master Aug 23, 2021
  • Overview 1
  • Commits 1
  • Pipelines 2
  • Changes 1

Found on FreeBSD where /bin/sh descends from Almquist shell.

[[ is supported by Bash, Zsh, oksh but not by FreeBSD sh, NetBSD sh, dash, mrsh.

dash$ [[ foo = bar ]]
dash: 1: [[: not found

mrsh$ [[ foo = bar ]]
mrsh:0:0: syntax error: keyword is reserved and causes unspecified results: [[

See also https://gitlab.gnome.org/bilelmoussaoui/gtk-rust-template/-/merge_requests/52

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: ash