--- a/compat/scripts/gen-compat-config.sh
+++ b/compat/scripts/gen-compat-config.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 # Copyright 2012        Luis R. Rodriguez <mcgrof@frijolero.org>
 # Copyright 2012        Hauke Mehrtens <hauke@hauke-m.de>
 #