From 915eaf1a47310261a08ef811391c6b781e61167e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Mei=C3=9Felbach?= Date: Tue, 15 Oct 2019 14:10:55 +0200 Subject: Improve awk usage so only the first Name= entry is used from a desktop file --- sway-launcher-desktop.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/sway-launcher-desktop.sh b/sway-launcher-desktop.sh index 8043423..741abb3 100755 --- a/sway-launcher-desktop.sh +++ b/sway-launcher-desktop.sh @@ -11,7 +11,6 @@ if [[ "$1" = 'describe' ]]; then description="${arr[0]}" description="${description%*-}" else - echo $1 title=$(sed -ne '/^Name=/{s/^Name=//;p;q}' "$1") description=$(sed -ne '/^Comment=/{s/^Comment=//;p;q}' "$1") fi -- cgit v1.2.3