mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
feat: Print arguments in debug mode (#743)
This commit is contained in:
parent
d1d920372a
commit
c5dd5c2e46
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user