upgpkg: discord 0.0.55-3: fix unset variable
* Fix unbound variable in launcher script if discord.conf is not used
This commit is contained in:
parent
9fafba484a
commit
651975fed7
3 changed files with 5 additions and 5 deletions
|
@ -14,7 +14,7 @@ declare -l PATCH_KRISP
|
|||
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"
|
||||
krisp_bin="${DISCORD_USER_DATA_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/${name}}/${ver}/modules/${name}_krisp/${name}_krisp.node"
|
||||
|
||||
if [[ "${PATCH_KRISP}" == true ]] && [[ -w "${krisp_bin}" ]] && python -c "import capstone; import elftools" &> /dev/null; then
|
||||
if [[ "${PATCH_KRISP:-}" == true ]] && [[ -w "${krisp_bin}" ]] && python -c "import capstone; import elftools" &> /dev/null; then
|
||||
# Patch Krisp binary to ignore signature check
|
||||
python /usr/share/${name}/krisp-patcher.py "${krisp_bin}"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue