-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
check the by-id path for a USB stick #24
Conversation
the recognition of the :0 does work but not the fallback to the unix path Help appreciated |
This worked in my tests: note that it's slightly different than what I posted in the Matrix chat. It uses the ${disk_id} variable that is available. I think this will work for the USB-disk-ids case only, not for the fallback that is in the previous code. Therefore you should probably use a separate if check for the USB case. |
Thanks! |
Hmm, I thought your if check should be separate, outside the other fallback if clause. Didn't think it through though and didn't test myself. |
code unnecessary |
would solve the : problem since the unix path does not contain :
not 100% sure if the code is correct