Skip to content
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

Fix 'Bad substitution' in Linux thumbnailer #4328

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheNullicorn
Copy link

aseprite-thumbnailer was failing (on Ubuntu 23.10) due to Bad substitution on this line:

filename=${1//\//.}$RANDOM

I think the script was written in an environment where sh linked to bash, whereas some distributions link it to something else (dash in my case). Changing the shebang line to #!/usr/bin/bash fixes it in my case.

I'm not very familiar with shell scripting, so I'd appreciate if someone could confirm this works on their system as well before merging.

- Change shebang from `sh` to `bash` to support the script's existing syntax

Signed-off-by: Nullicorn <[email protected]>
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.

None yet

1 participant