Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Oct 18, 2023

Explanation:

  1. You don't need /bin/ because you don't need absolute path of a program.
  2. Instead of URL=$(echo "%u" | sed -E 's|^mpv://||') use URL="%u"; URL=${URL#mpv://}, which have the same effect.
  3. You also don't need sh -c "...commands..." to group commands, you can use { commands;}.

@Joshix-1 Joshix-1 merged commit 1194296 into binarynoise:main Oct 23, 2023
@Joshix-1
Copy link
Collaborator

I didn't know that, thank you

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

Successfully merging this pull request may close these issues.

1 participant