From 58ddad39fcf4d5e192352030ee8dab57b3d603ab Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Mon, 22 Jan 2024 14:59:46 +0000 Subject: [PATCH] build: remove Bash dependency in favor of `sh` These shell commands/scripts all seem to work fine with POSIX shell, so there's no reason to depend on Bash for building. --- doc/dbus/meson.build | 2 +- po/check-translations.sh | 2 +- src/meson.build | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/dbus/meson.build b/doc/dbus/meson.build index 431127d..fdb481e 100644 --- a/doc/dbus/meson.build +++ b/doc/dbus/meson.build @@ -18,7 +18,7 @@ foreach interface_file: dbus_interfaces depend_files: interface_file, capture: true, command: [ - bash, '-c', + sh, '-c', 'cat "$1"; "$2" "$3" "$4" | tail -n +2', '_', # argv0 ignored '@INPUT@', diff --git a/po/check-translations.sh b/po/check-translations.sh index 9754168..a548f83 100755 --- a/po/check-translations.sh +++ b/po/check-translations.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh po_dir=$(dirname $0) diff --git a/src/meson.build b/src/meson.build index a7ce3fe..410226a 100644 --- a/src/meson.build +++ b/src/meson.build @@ -1,4 +1,4 @@ -bash = find_program('bash') +sh = find_program('sh') dbus_interfaces = files( 'net.reactivated.Fprint.Manager.xml', 'net.reactivated.Fprint.Device.xml',