Skip to content

Commit

Permalink
Use /usr/bin/env to locate bash
Browse files Browse the repository at this point in the history
On FreeBSD, this lives in /usr/local/bin. Note: this pattern is already
used for the other scripts in hack.

Signed-off-by: Doug Rabson <dfr@rabson.org>
  • Loading branch information
dfr committed Aug 4, 2022
1 parent 4ca2937 commit 636e239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/seccomp-notify.sh
@@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
if $(printf '#include <linux/seccomp.h>\nvoid main(){struct seccomp_notif_sizes s;}' | cc -x c - -o /dev/null 2> /dev/null && pkg-config --atleast-version 2.5.0 libseccomp); then
echo "0"
fi

0 comments on commit 636e239

Please sign in to comment.