Testing
This commit is contained in:
parent
5c4078dba2
commit
a17ab329a2
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user