dotfiles/.local/bin/scripts/st-diff

7 lines
152 B
Plaintext
Raw Normal View History

2021-03-30 16:07:58 +00:00
#!/bin/sh
dif "$(st-unarchive "$1")" "$@"
2021-04-11 20:47:51 +00:00
test "$?" -eq "2" && exit 1
2021-03-30 16:07:58 +00:00
echo "y to restore"
read answer
test "$answer" = "y" && st-restore "$1" || exit 0