From d022301c389e9c884fe18eea0c020dd575fd0543 Mon Sep 17 00:00:00 2001 From: Kamil Skowron Date: Thu, 28 Mar 2019 16:34:30 +0000 Subject: [PATCH] Fix: Allow to remove `current` directory (#112) * Fix: Allow to delete `current` directory * Further improvements just in case new screen resolution --- betterlockscreen | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/betterlockscreen b/betterlockscreen index c77c604..d58d8aa 100755 --- a/betterlockscreen +++ b/betterlockscreen @@ -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