This commit is contained in:
Christoffer Martinsson 2025-09-27 18:31:26 +02:00
parent 5c4078dba2
commit a17ab329a2

View File

@ -13,9 +13,9 @@ restore_latest_state() {
SNAPSHOT_CREATED=""
TIMESLICE_LABEL=""
if pacman -Qs timeshift >/dev/null; then
TIMESLICE_INFO=$(sudo timeshift --list | awk '
TIMESLICE_INFO=$(sudo timeshift --list | awk -F': +' '
/^Snapshot/ {snap=$2}
/^Created on/ {created=$4 " " $5}
/^Created on/ {created=$2}
END { if (snap != "") { print snap "|" created } }
')
if [ -n "$TIMESLICE_INFO" ]; then