6 lines
152 B
Bash
Executable file
6 lines
152 B
Bash
Executable file
#!/bin/sh
|
|
dif "$(st-unarchive "$1")" "$@"
|
|
test "$?" -eq "2" && exit 1
|
|
echo "y to restore"
|
|
read answer
|
|
test "$answer" = "y" && st-restore "$1" || exit 0
|