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 dd92dab702
commit 4dbda26af7
Signed by: Manuel
GPG key ID: 4085037435E1F07A
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