Added in device validation for USB passthrough

This commit is contained in:
2025-12-02 07:46:14 -07:00
parent 8d6f3e9a93
commit f8390ab262
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -8076,6 +8076,10 @@ validate_port_number() {
fi
}
validate_device_exists () {
[[ -e /dev/sde ]] || red_bold "The specified device does not exist: $1"
}
validate_dir_exists() {
if [[ ! -d "$1" ]]; then
echo "must be an existing directory"
@@ -3,3 +3,7 @@ validate_port_number() {
red_bold "The port number provided is invalid: $1"
fi
}
validate_device_exists () {
[[ -e /dev/sde ]] || red_bold "The specified device does not exist: $1"
}