Commit acd02c00 authored by Ole Tange's avatar Ole Tange
Browse files

wastebasket: Stop infinite loop if .waste is not found.

parent 4389fb20
......@@ -26,4 +26,5 @@ install:
mkdir -p /usr/local/share/man/man1
parallel ln -sf `pwd`/{} /usr/local/share/man/man1/{/} ::: */*.1
mkdir -p $(HOME)/.local/share/vlc/lua/extensions
ln -s `pwd`/splitvideo/dotlocal/share/vlc/lua/extensions/splitvideo.lua $(HOME)/.local/share/vlc/lua/extensions/splitvideo.lua
ln -sf `pwd`/splitvideo/dotlocal/share/vlc/lua/extensions/splitvideo.lua $(HOME)/.local/share/vlc/lua/extensions/splitvideo.lua
ln -sf `pwd`/wastebasket/dotlocal/share/vlc/lua/extensions/WasteBasket.lua $(HOME)/.local/share/vlc/lua/extensions/WasteBasket.lua
......@@ -74,6 +74,11 @@ function wastedir(dir)
end
-- try the parent dir
local parent = dirname(dir)
if(parent == dir) then
-- we have reached root (/)
-- return wdir (which does not exist)
return wdir
end
vlc.msg.dbg("[Wastebasket/wastedir] parent " .. parent)
if directory_exists(parent) then
return wastedir(parent)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment