From a85426541aa3afe3c5c91ddb94a1426e9e669ee6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sat, 21 Dec 2024 08:16:23 +0100 Subject: [PATCH] sdn-install: improve macOS installation Login shells have a dash at the beginning of their first argument. --- sdn-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdn-install b/sdn-install index 0e28390..788c8bf 100755 --- a/sdn-install +++ b/sdn-install @@ -125,7 +125,7 @@ done # Figure out the shell to integrate with login=$(basename "$SHELL") -actual=$(ps -p $$ -o ppid= | xargs ps -o comm= -p) +actual=$(ps -p $$ -o ppid= | xargs ps -o comm= -p | sed 's/^-//') if [ -z "$shell" ] then if [ "$login" != "$actual" ]