upgpkg: discord-electron-openasar 0.0.55+827-2: 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:43:33 +02:00
parent d16b7a66a4
commit b91cd3a6e8
3 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ declare -l PATCH_KRISP
flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/@PKGNAME@-flags.conf"
krisp_bin="${DISCORD_USER_DATA_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/@PKGNAME@}/@PKGVER@/modules/@PKGNAME@_krisp/@PKGNAME@_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/lib/@PKGNAME@/krisp-patcher.py "${krisp_bin}"
fi