upgpkg: discord-electron 0.0.27-4
Update launch script to not touch the flags file with sed on no match
This commit is contained in:
parent
d5513a1e94
commit
bcc3abeedf
3 changed files with 6 additions and 5 deletions
|
@ -7,7 +7,8 @@ flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/@PKGNAME@-flags.conf"
|
|||
declare -a flags
|
||||
|
||||
if [[ -f "${flags_file}" ]]; then
|
||||
sed -i "s|--ignore-gpu-blacklist|--ignore-gpu-blocklist|" "${flags_file}"
|
||||
grep -q '\--ignore-gpu-blacklist' "${flags_file}" && \
|
||||
sed -i "s|--ignore-gpu-blacklist|--ignore-gpu-blocklist|" "${flags_file}"
|
||||
mapfile -t < "${flags_file}"
|
||||
else
|
||||
cat > "${flags_file}" <<EOF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue