From 0225a9cf017c56c319fa859dbc4983f44c2b65e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastien=20B=C3=BCrky?= Date: Sun, 5 May 2024 14:56:57 +0200 Subject: [PATCH] Fix readme and check if the custom freeRDP Command is actually existing --- README.md | 1 - bin/winapps | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2924c69..a798dd9 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,6 @@ The following optional commands can be used to manage your application configura ./installer.sh --system # Configure applications for the entire system ./installer.sh --user --uninstall # Remove all configured applications for the current user ./installer.sh --system --uninstall # Remove all configured applications for the entire system -``` ./installer.sh --user --setupAllOfficiallySupportedApps # Configures all officially supported applications for the current user ./installer.sh --system --setupAllOfficiallySupportedApps # Configures all officially supported applications for the entire system ``` diff --git a/bin/winapps b/bin/winapps index 0f24c86..cf4a52b 100755 --- a/bin/winapps +++ b/bin/winapps @@ -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