logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 7880a97b0cbb63e898f02c194c3aefd978da2fa4
parent 294a15f1d3bfce531ab18ee563c484fcc9df5e90
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 31 Oct 2024 12:38:51 +0100

test-cmd/link.sh: replace non-standard $RANDOM with "hello" & "world"

Diffstat:

Mtest-cmd/link.sh4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/test-cmd/link.sh b/test-cmd/link.sh @@ -11,9 +11,9 @@ t --exit=1 noargs '' 'usage: link <reference> <destination> basic_foo=$(mktemp) t basic "${basic_foo} ${basic_foo}.bar" '' -printf '%s\n' $RANDOM > "${basic_foo}" || exit 1 +echo hello > "${basic_foo}" || exit 1 cmp "${basic_foo}" "${basic_foo}.bar" || exit 1 -printf '%s\n' $RANDOM > "${basic_foo}.bar" || exit 1 +echo world > "${basic_foo}.bar" || exit 1 cmp "${basic_foo}" "${basic_foo}.bar" || exit 1 rm "${basic_foo}" "${basic_foo}.bar" || exit 1