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:
Manuel 2024-06-09 23:31:09 +02:00
parent 9fafba484a
commit 651975fed7
Signed by: Manuel
GPG key ID: 4085037435E1F07A
3 changed files with 5 additions and 5 deletions

View file

@ -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