mirror of
https://git.adityakumar.xyz/betterlockscreen-openrc.git
synced 2024-11-08 18:29:45 +00:00
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:
parent
ed2e9d80bb
commit
d022301c38
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue