fix: remove brackets from awk variable

This commit is contained in:
Ben Grande 2024-04-16 18:26:02 +02:00
parent 4d63820f64
commit a179b8c878
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

View File

@ -44,7 +44,7 @@ desktop_autostart(){
for f in "${autostart_etc}"/*.desktop "${autostart_home}"/*.desktop; do
test -r "${f}" || continue
# shellcheck disable=SC2091
autostart_exec="$(awk -F '=' '/^Exec=/{print ${2}}' "${f}")"
autostart_exec="$(awk -F '=' '/^Exec=/{print $2}' "${f}")"
command -v "${autostart_exec%% *}" >/dev/null || continue
${autostart_exec} &
done