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