Skip to content

Commit

Permalink
testsuite: Fix hardcoded /bin/bash in custom-cc wrapper
Browse files Browse the repository at this point in the history
Not all operating systems have `/bin/bash` available, it is more portable
to use `/usr/bin/env bash`

For example: https://stackoverflow.com/questions/21612980/why-is-usr-bin-env-bash-superior-to-bin-bash
  • Loading branch information
mpickering authored and ulysses4ever committed Jan 31, 2024
1 parent 46a7bfc commit d35f4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-testsuite/PackageTests/CCompilerOverride/custom-cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if which cc >/dev/null 2>&1; then
cc -DNOERROR6 "${@}"
Expand Down

0 comments on commit d35f4e6

Please sign in to comment.