feat: Print arguments in debug mode (#743)

This commit is contained in:
Kroese 2024-05-21 09:17:51 +02:00 committed by GitHub
parent d1d920372a
commit c5dd5c2e46
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View File

@ -30,8 +30,8 @@ if [[ "$RAM_CHECK" != [Nn]* ]]; then
fi
if [[ "$DEBUG" == [Yy1]* ]];
printf "Arguments:\n\n${ARGS// -/$'\n-'}" && echo
if [[ "$DEBUG" == [Yy1]* ]]; then
printf "Arguments:\n\n%s" "${ARGS// -/$'\n-'}" && echo
fi
return 0

View File

@ -478,8 +478,7 @@ addDevice () {
html "Initializing disks..."
case "${DISK_TYPE,,}" in
"" )
DISK_TYPE="scsi"
"" ) DISK_TYPE="scsi" ;;
"ide" | "usb" | "blk" | "scsi" ) ;;
* ) error "Invalid DISK_TYPE, value \"$DISK_TYPE\" is unrecognized!" && exit 80 ;;
esac