Fix readme and check if the custom freeRDP Command is actually existing

This commit is contained in:
Sebastien Bürky
2024-05-05 14:56:57 +02:00
parent f240fc3e95
commit 0225a9cf01
2 changed files with 5 additions and 2 deletions

View File

@@ -49,7 +49,11 @@ if [ -z "${FREERDP_COMMAND}" ]; then
FREERDP_COMMAND="xfreerdp3"
fi
else
dprint "Using custom freerdp command ${FREERDP_COMMAND}"
if command -v $FREERDP_COMMAND &> /dev/null
dprint "Using custom freerdp command ${FREERDP_COMMAND}"
else
echo "You have supplied a custom FreeRDP command, but the command is not available."
fi
fi
if [ -z "${RDP_IP}" ]; then