aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-10-25 01:04:05 -0300
committerEuAndreh <eu@euandre.org>2022-10-25 01:04:05 -0300
commit9ef0ba6009746c1370fc469ecef704044e46a6df (patch)
treecc95be5cf5cb819b79ea8eb9e439381b0bf81fdf
parentetc/guix/home.scm: Name "broken" the incompatible packages (diff)
downloaddotfiles-9ef0ba6009746c1370fc469ecef704044e46a6df.tar.gz
dotfiles-9ef0ba6009746c1370fc469ecef704044e46a6df.tar.xz
bin/li: Use "$(find $a -newer $b)" over [ $a -nt $b ]
-rwxr-xr-xbin/li2
1 files changed, 1 insertions, 1 deletions
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" \