[scripts] fix: dmenuopen
This commit is contained in:
parent
2cafd49a44
commit
15f78fdab0
@ -15,8 +15,9 @@ filetype=$(printf "$filetypes" | sed "s| |\n|g" | dmenu -i -p "type of the file?
|
||||
|
||||
[ -z "$filetype" ] && exit 1
|
||||
|
||||
dirs=$(printf "$HOME/documents $HOME/downloads")
|
||||
|
||||
file=$(find $HOME/{documents,downloads} -type f -path "*.$filetype" | dmenu -i -l 20 -p "open")
|
||||
file=$(find $dirs -type f -path "*.$filetype" | dmenu -i -l 20 -p "open")
|
||||
|
||||
[ -z "$file" ] && exit 2
|
||||
|
||||
|
Reference in New Issue
Block a user