Method: Specinfra::Command::Darwin::Base::User.check_has_login_shell

Defined in:
lib/specinfra/command/darwin/base/user.rb

.check_has_login_shell(user, path_to_shell) ⇒ Object



7
8
9
# File 'lib/specinfra/command/darwin/base/user.rb', line 7

def (user, path_to_shell)
  "finger #{escape(user)} | grep -E '^Directory' | awk '{ print $4 }' | grep -E '^#{escape(path_to_shell)}$'"
end