sdn-install: improve macOS installation
All checks were successful
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success

Login shells have a dash at the beginning of their first argument.
This commit is contained in:
Přemysl Eric Janouch 2024-12-21 08:16:23 +01:00
parent c9b003735d
commit a85426541a
Signed by: p
GPG Key ID: A0420B94F92B9493

View File

@ -125,7 +125,7 @@ done
# Figure out the shell to integrate with # Figure out the shell to integrate with
login=$(basename "$SHELL") 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" ] if [ -z "$shell" ]
then then
if [ "$login" != "$actual" ] if [ "$login" != "$actual" ]