grep help menu shows up when providing empty credentials
How reproducible
100%
How to reproduce
Enter DTS 2.0.0 menu, provide empty credentials. Checkout Something may be wrong with the DPP credentials message.
Expected behavior
No grep message
Actual behavior
Enter logs key:
Enter firmware download key:
Enter password:
Dasharo DPP credentials have been saved
Checking for Dasharo firmware...
Waiting for network connection ...
Network connection have been established!
Checking if board is Dasharo compatible.
Waiting for network connection ...
Network connection have been established!
Something may be wrong with the DPP credentials or you may not
have access to Dasharo Firmware. If so, consider getting Dasharo
Subscription and improving security of your platform!
Press any key to continue
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Screenshots
No response
Additional context
The cause may be hidden in following function:
login_to_dpp_server(){
# Check if the user is already logged in, log in if not:
if [ -z "$(mc alias list | grep ${CLOUDSEND_DOWNLOAD_URL})" ]; then
if ! mc alias set $DPP_SERVER_USER_ALIAS $DPP_SERVER_ADDRESS $CLOUDSEND_DOWNLOAD_URL $CLOUDSEND_PASSWORD >> $ERR_LOG_FILE 2>&1 ; then
print_error "Your credentials do not have access to DPP packages. If you bought one, check the"
print_error "credentials you have used, and contact support. If you did not buy any DPP"
print_error "packages - feel free to continue."
read -p "Press enter to continue"
return 1
fi
fi
return 0
}
Component
Dasharo Tools Suite
Device
other
Dasharo version
-
Dasharo Tools Suite version
2.0.0
Test case ID
No response
Brief summary
grep help menu shows up when providing empty credentials
How reproducible
100%
How to reproduce
Enter DTS 2.0.0 menu, provide empty credentials. Checkout
Something may be wrong with the DPP credentials
message.Expected behavior
No grep message
Actual behavior
Screenshots
No response
Additional context
The cause may be hidden in following function:
Solutions you've tried
No response