sdn-install: improve macOS installation
Login shells have a dash at the beginning of their first argument.
This commit is contained in:
		@@ -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" ]
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user