2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-06 10:18:20 +00:00

Fix support of password with shell characters

This commit is contained in:
Jarrod Johnson
2017-01-18 09:45:47 -05:00
parent b56c811f1a
commit bcc9f1292a

View File

@@ -445,7 +445,7 @@ for bmcp in $BMCPW; do
TRIES=0
# Set the password for the specified user
while ! ipmitool -d $idev user set password $USERSLOT $bmcp; do
while ! ipmitool -d $idev user set password $USERSLOT "$bmcp"; do
sleep 1
let TRIES=TRIES+1
if [ $TRIES -gt $TIMEOUT ]; then break; fi