Remove non-posix expansion in autorestore.kak

This commit is contained in:
Maxime Coste 2016-04-20 13:25:38 +01:00
parent 199ccb4021
commit 1c43faeba9

View File

@ -31,7 +31,7 @@ def autorestore-restore-buffer -docstring "Restore the backup for the current fi
echo "
hook -group autorestore global BufWritePost (.+/)?${kak_bufname} %{
nop %sh{
if [ \"\${kak_opt_autorestore_purge_restored,,}\" = true ]; then
if [ \"\${kak_opt_autorestore_purge_restored}\" = true ]; then
rm -f '${latest_backup_path}'
fi
}