From 29ec43e9a6953e9940cb2cdf8f0baf3870c47b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20J=C3=A4ger?= Date: Sun, 4 Dec 2022 22:11:00 +0100 Subject: [PATCH] grub-btrfsd: Fix non POSIX redirect MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Squashed commit of the following: commit d75feb59f43e244594b96da0b2dcc77563699901 Author: Pascal J Date: Sun Dec 4 22:07:01 2022 +0100 grub-btrsd: update shebang commit a64379789c09e77f7d779c178ddce6df5e02948e Author: Pavin Joseph Date: Sun Dec 4 22:52:31 2022 +0530 Update grub-btrfsd commit fe42568785f4b0d7315097492b85e73394dd3444 Author: Pavin Joseph Date: Sun Dec 4 04:07:05 2022 +0530 Update grub-btrfsd Signed-off-by: Pascal Jäger --- config | 2 +- grub-btrfsd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config b/config index c691402..50905b9 100644 --- a/config +++ b/config @@ -1,6 +1,6 @@ #!/usr/bin/env bash -GRUB_BTRFS_VERSION=4.12-master-2022-11-26T16:59:38+00:00 +GRUB_BTRFS_VERSION=4.12-master-2022-12-04T21:11:00+00:00 # Disable grub-btrfs. # Default: "false" diff --git a/grub-btrfsd b/grub-btrfsd index 8f28268..198b0ad 100755 --- a/grub-btrfsd +++ b/grub-btrfsd @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env sh # Copyright 2022 Pascal Jaeger # Distributed under the terms of the GNU General Public License v3 # Update GRUB when new BTRFS snapshots are created. @@ -158,7 +158,7 @@ shift $(( OPTIND - 1 )) snapshots="${1}" # check if inotify exists, see issue #227 -if ! command -v inotifywait &> /dev/null; then +if ! command -v inotifywait >/dev/null 2>&1; then err "[!] inotifywait was not found, exiting. Is inotify-tools installed?" "${RED}" >&2 exit 1 fi