From a64379789c09e77f7d779c178ddce6df5e02948e Mon Sep 17 00:00:00 2001 From: Pavin Joseph Date: Sun, 4 Dec 2022 22:52:31 +0530 Subject: [PATCH] Update grub-btrfsd --- grub-btrfsd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grub-btrfsd b/grub-btrfsd index 47d1293..399de37 100755 --- a/grub-btrfsd +++ b/grub-btrfsd @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/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