From a85426541aa3afe3c5c91ddb94a1426e9e669ee6 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 21 Dec 2024 08:16:23 +0100 Subject: 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(-) (limited to 'sdn-install') 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" ] -- cgit v1.2.3-70-g09d2