From 175df41fa3fd13a88c12bc3ecc3a360b52be5420 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sun, 23 Mar 2025 19:26:45 +0300 Subject: [PATCH] Shorter notation --- bin/bin/zsnap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/bin/zsnap b/bin/bin/zsnap index 8ffb0e0..3ee5afa 100755 --- a/bin/bin/zsnap +++ b/bin/bin/zsnap @@ -64,7 +64,7 @@ case $action in latest_dst=($dst/*.from~$dst/.*(.Onn[1])) [[ $latest_dst ]] latest_dst=${latest_dst[1]} - latest_dst=${${latest_dst##*/}%.from} + latest_dst=$latest_dst:t:r [[ $latest_dst != $latest_filename ]] setopt PIPE_FAIL set -x -- 2.48.1