Fix: Allow to remove current directory (#112)

* Fix: Allow to delete `current` directory

* Further improvements just in case new screen resolution
This commit is contained in:
Kamil Skowron 2019-03-28 16:34:30 +00:00 committed by Pavan Jadhaw
parent ed2e9d80bb
commit d022301c38

View file

@ -38,7 +38,8 @@ init_filenames() {
folder="$HOME/.cache/i3lock/current"
echo "Got" $@ $res_folder
if [ ! -d $folder -o -n "$2" ]; then
rm -f $folder
rm -rf $folder
mkdir -p $res_folder
ln -s $res_folder $folder
fi