summarylogtreecommitdiffstats
path: root/discord-launcher.sh
diff options
context:
space:
mode:
authorManuel Hüsers2024-06-09 23:31:09 +0200
committerManuel Hüsers2024-06-09 23:31:09 +0200
commit651975fed7cc51ff5e03fbcb12a54d9f17d2aeb3 (patch)
tree2d035efec4e8907ba59851a1e0868f73b317a260 /discord-launcher.sh
parent9fafba484a420eb6acbc4fa7d92220a621f6e96e (diff)
downloadaur-651975fed7cc51ff5e03fbcb12a54d9f17d2aeb3.tar.gz
upgpkg: discord 0.0.55-3: fix unset variable
* Fix unbound variable in launcher script if discord.conf is not used
Diffstat (limited to 'discord-launcher.sh')
-rwxr-xr-xdiscord-launcher.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord-launcher.sh b/discord-launcher.sh
index e7652dfa95fb..81bc714870f0 100755
--- a/discord-launcher.sh
+++ b/discord-launcher.sh
@@ -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