Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (14 sloc) 282 Bytes
#!/bin/sh
dir=`basename $1`
dirfile=$HOME/.stagingdir
if [ -f $dirfile ]; then
stagingdir=`cat $HOME/.stagingdir`
else
stagingdir=$HOME/.staging
fi
if [ ! -f $stagingdir/crypt/$dir.key.gpg ]; then
echo 'No such folder'
exit
fi
fusermount -u $HOME/$dir
rmdir $HOME/$dir