logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 70f025f366b47964791b4377c7f1be9eeee2f9da
parent b41006e7c3479df20bdc97b0d2e14565834329c0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 21 Nov 2024 09:50:13 +0100

test-cmd/touch.sh: Skip when stat(1) is missing

Diffstat:

Mtest-cmd/touch.sh6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/test-cmd/touch.sh b/test-cmd/touch.sh @@ -1,6 +1,12 @@ #!/bin/sh # SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> # SPDX-License-Identifier: MPL-2.0 + +if ! command -v stat >/dev/null 2>/dev/null; then + echo '1..0 # SKIP: missing command: stat' + exit 0 +fi + WD=$(dirname "$0") plans=33 target="${WD}/../cmd/touch"