mirror of
https://github.com/gaschz/dotfiles.git
synced 2025-03-01 14:22:33 +01:00
fix: remove brackets from awk variable
This commit is contained in:
parent
4d63820f64
commit
a179b8c878
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user