Use id instead of whoami

bug/bundler_fix
jvazquez-r7 2015-09-04 12:02:21 -05:00
parent 4fa58efaa0
commit 60d2856444
No known key found for this signature in database
GPG Key ID: 38D99152B9352D83
1 changed files with 7 additions and 1 deletions

View File

@ -720,6 +720,12 @@ Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
def whoami
@platform == :windows ? (session.sys.config.getenv('USERNAME')) : (cmd_exec("whoami").chomp)
if @platform == :windows
id = session.sys.config.getenv('USERNAME')
else
id = cmd_exec("id -un")
end
id
end
end