From 52a67d9e1ddecd32b3b1eec75b0690ec5d2e56c7 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 7 Mar 2023 14:02:45 +0100 Subject: [PATCH] launch from anywhere Signed-off-by: Gwenhael Le Moine --- what-s_installed.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/what-s_installed.sh b/what-s_installed.sh index 2e66473f..0574a0be 100755 --- a/what-s_installed.sh +++ b/what-s_installed.sh @@ -1,5 +1,7 @@ #!/bin/bash +cd $(dirname $0) || exit 1 + PKGs=$(ls /var/adm/packages/ | sed 's|^\(.*\)-.*-.*-.*$|\1|') for cat in a ap d l lua n wayland xap y; do