Skip to content

Commit

Permalink
Problem: stuck pinentry causes veil to stuck too
Browse files Browse the repository at this point in the history
Solution:

 - Write `unfuckup` script which will undo and remove new files in darcs repo.
 - This script is idempotent. If you have clean repo, it won't do anything.
 - This script should be later on ported into the veil codebase itself.
  • Loading branch information
cognivore committed Jan 19, 2022
1 parent b087630 commit ef2a7a4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/passveil_unfuckup_dirty_repo
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
echo "This is a destructive operation. Press Ctrl+c now if you're unsure it's OK to continue, or press Enter if you know what you're doing"
read

_store="${HOME}/.passveil"
if [[ -n "$1" ]]; then
_store="$1"
fi

passveil --store "$_store" undo

_repo="${_store}/store"
cd "$_repo"
darcs status | cut -d\ -f2 | parallel 'rm -rvf "{1}"'

0 comments on commit ef2a7a4

Please sign in to comment.