mirror of
https://github.com/rworkman/slackpkg
synced 2024-12-25 21:58:42 +01:00
Allow file-search to find absolute file paths
Remove initial / from the search term to allow file-search to find files defined by a full path.
This commit is contained in:
parent
b211490ee5
commit
3e54f67638
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ case "$CMD" in
|
|||
echo -e ""
|
||||
;;
|
||||
file-search)
|
||||
PATTERN=$(echo $ARG | sed -e 's/\+/\\\+/g' -e 's/\./\\\./g' -e 's/ /\|/g')
|
||||
PATTERN=$(echo $ARG | sed -e 's/^\///g' -e 's/\+/\\\+/g' -e 's/\./\\\./g' -e 's/ /\|/g')
|
||||
makelist $PATTERN
|
||||
|
||||
if [ "$LIST" = "" ]; then
|
||||
|
|
Loading…
Reference in a new issue