Skip to content

Instantly share code, notes, and snippets.

@Pobega
Created November 19, 2025 21:48
Show Gist options
  • Select an option

  • Save Pobega/e9a0f509258eee42b1766a70031d00ba to your computer and use it in GitHub Desktop.

Select an option

Save Pobega/e9a0f509258eee42b1766a70031d00ba to your computer and use it in GitHub Desktop.
Operius DX Patchscript fixes (for non-bash shells) (NextUI)
137c137,139
< if [ -z "${!var}" ]; then
---
> # Use POSIX eval over indirect parameter expansion
> eval "var_value=\$$varname"
> if [ -z "$var_value" ]; then
169c171,172
< basename="${item##*/}"
---
> # Use POSIX basename command instead of bash parameter expansion
> basename="$(basename "$item")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment