From a179b8c8788ff3d164385c87c42baee5f931fad3 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Tue, 16 Apr 2024 18:26:02 +0200 Subject: [PATCH] fix: remove brackets from awk variable --- files/x11/.config/x11/xprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/x11/.config/x11/xprofile b/files/x11/.config/x11/xprofile index ffbe6c5..20b8f2d 100755 --- a/files/x11/.config/x11/xprofile +++ b/files/x11/.config/x11/xprofile @@ -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