forked from LandmakTechnology/nodejs-application
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nexus.sh
23 lines (17 loc) · 568 Bytes
/
nexus.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/expect -f
# Set the credentials
#set username "kelvin"
#set password "jumped"
# Run the npm login command with expect
#spawn npm login --registry=https://172.31.55.126:8081/klik/repository/akugbe_nodejs/
# Expect the username prompt and provide the username
#expect "Username:"
#send "$username\r"
# Expect the password prompt and provide the password
#expect "Password:"
#send "$password\r"
# Expect the email prompt and provide the email (if required)
#expect "Email: (this IS public)"
#send "\r"
# Wait for the login process to complete
#expect eof