Had to unescape EXEX_REPLACEMENT that would've prevented the desktop file from being valid

This commit is contained in:
Tristan Ancelet 2023-11-10 18:15:22 -06:00
parent b44ac4e4b4
commit 4ab64cc1f1

View File

@ -60,7 +60,7 @@ function update_desktop_file() {
## Escaped becuase it would mess up the replacement syntax ## Escaped becuase it would mess up the replacement syntax
EXEC_TO_REPLACE=\/usr\/share\/discord\/Discord EXEC_TO_REPLACE=\/usr\/share\/discord\/Discord
EXEC_REPLACEMENT=$EXISTING_INSTALL\/Discord EXEC_REPLACEMENT=$EXISTING_INSTALL/Discord
## Loading the desktop file contents into a variable to use replacement without sed ## Loading the desktop file contents into a variable to use replacement without sed
DESKTOP_FILE_CONTENTS="$(<$DESKTOP_FILE)" DESKTOP_FILE_CONTENTS="$(<$DESKTOP_FILE)"