From 0d59d3ae812173b5d823fdb474c77e1921625610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 5 Jan 2023 14:59:12 +0200 Subject: [PATCH] Revert "shorten snaplink" This reverts commit a51090514e22d4fe981960fdcd28985b9bb69bf9. --- scripts/snaplink | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/snaplink b/scripts/snaplink index 2faa3f9..7c0b278 100755 --- a/scripts/snaplink +++ b/scripts/snaplink @@ -1,7 +1,10 @@ #!/usr/bin/env bash set -euo pipefail snap_path="$SANOID_TARGET/.zfs/snapshot/$SANOID_SNAPNAME" -[[ -d "$snap_path" ]] || { >&2 echo "expected directory $snap_path"; exit 1; } +[[ -d "$snap_path" ]] || { + >&2 echo "expected to find a directory in $snap_path" + exit 1 +} link_path="$SANOID_TARGET/.snapshot-latest" ln -sf "$snap_path" "$link_path" >&2 printf "successfully created %s -> %s\n" "$link_path" "$snap_path"