From 9ef0ba6009746c1370fc469ecef704044e46a6df Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 25 Oct 2022 01:04:05 -0300 Subject: bin/li: Use "$(find $a -newer $b)" over [ $a -nt $b ] --- bin/li | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/li b/bin/li index e62060b..8636a07 100755 --- a/bin/li +++ b/bin/li @@ -89,7 +89,7 @@ if [ ! -e "$IMAGE" ]; then -e '(ql:quickload :trivial-dump-core)' \ -e "(trivial-dump-core:dump-image \"$IMAGE\")" \ -e '(uiop:quit)' -elif [ "$0" -nt "$IMAGE" ] || [ "$BIN" -nt "$IMAGE" ] || [ "$INIT" -nt "$IMAGE" ]; then +elif [ -n "$(find "$0" "$BIN" "$INIT" -newer "$IMAGE")" ]; then printf 'Refresh existing "%s" image...\n' "$IMPL" >&2 cl \ -M "$IMAGE" \ -- cgit v1.2.3