diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2024-12-21 08:16:23 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2024-12-21 08:16:23 +0100 |
commit | a85426541aa3afe3c5c91ddb94a1426e9e669ee6 (patch) | |
tree | 5e5d864c2f59caae2d9aac1e06b41a8b00ba79d4 | |
parent | c9b003735df3a2dcd65e89a19c174f1dac4aeb23 (diff) | |
download | sdn-a85426541aa3afe3c5c91ddb94a1426e9e669ee6.tar.gz sdn-a85426541aa3afe3c5c91ddb94a1426e9e669ee6.tar.xz sdn-a85426541aa3afe3c5c91ddb94a1426e9e669ee6.zip |
sdn-install: improve macOS installation
Login shells have a dash at the beginning of their first argument.
-rwxr-xr-x | sdn-install | 2 |
1 files changed, 1 insertions, 1 deletions
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" ] |