From 89f8a655f14d76d59bc924aefaa4d0c537189e8d Mon Sep 17 00:00:00 2001 From: Hippolyte CHAUVIN Date: Tue, 2 May 2023 11:49:10 +0200 Subject: [PATCH] Solutions plus simple que xargs --- bin/waylectron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/waylectron b/bin/waylectron index 4c38092..12d715f 100755 --- a/bin/waylectron +++ b/bin/waylectron @@ -1,6 +1,6 @@ #!/bin/sh program="$(basename "$0")" -PATH="$(echo "$PATH" | sed 's|'"$(which "$program" | tr '\n' '\0' | xargs -0 dirname)"'||g' | sed 's/^://g' | sed 's/::/:/g')" +PATH="$(echo "$PATH" | sed 's|'"$(dirname "$(which "$program")")"'||g' | sed 's/^://g' | sed 's/::/:/g')" exec "$program" \ "$@" \ --ozone-platform-hint=wayland