Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

Avoid scan of other filesystems #2

Open
dzogrim opened this issue Dec 21, 2018 · 3 comments
Open

Avoid scan of other filesystems #2

dzogrim opened this issue Dec 21, 2018 · 3 comments

Comments

@dzogrim
Copy link

dzogrim commented Dec 21, 2018

Hey ! It could be nice to add -mount to find here to avoid scan of large mounted pathes…

[ -z "$ZCLI" ] && ZCLI=$(find / -name zcli | egrep "bin/zcli$")

@sfernandezarce
Copy link

sfernandezarce commented Jan 5, 2019

In some cases if the VTM is updated probably you see more than one path

To solve it you can find it manually and then add the last version's path

@sfernandezarce
Copy link

Something like this:

root@BMLb01:~/.acme.sh# find / -name zcli | egrep "/bin/zcli$"
/usr/local/zeus/zxtm-10.0/bin/zcli
/usr/local/zeus/zxtm-11.1/bin/zcli

then add the current version in the line
[ -z "$ZCLI" ] && ZCLI=$(find / -name zcli | egrep "/zxtm-11.1/bin/zcli$")

@dzogrim
Copy link
Author

dzogrim commented Jan 25, 2019

Hi,
no no… I already handled this multiple versions thing but I was talking about not descend directories on other filesystems (like -xdev). See? For others…

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants