Skip to content

Commit

Permalink
feat: Print arguments in debug mode (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese committed May 21, 2024
1 parent d1d9203 commit c5dd5c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 1 addition & 2 deletions src/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5dd5c2

Please sign in to comment.