1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 08:54:58 +00:00

Meta: Factorize path resolution

This patch adds the `find_executable()` function that will hopefully
find executables in a distro-agnostic way and that is (hopefully as
well) easily upgradable.

The function uses some bash functionalities. So, we now require bash
for each script that includes `.shell_include.sh`.
This commit is contained in:
Lucas CHOLLET 2022-12-06 18:17:41 +01:00 committed by Linus Groh
parent b409d3cf88
commit 0fde7fe3c5
6 changed files with 35 additions and 39 deletions

View file

@ -1,4 +1,4 @@
#!/bin/sh
#!/usr/bin/env bash
set -e