From adc893eef1f437bae1cbcb77dc35e110dea3fe11 Mon Sep 17 00:00:00 2001 From: Fmstrat Date: Mon, 9 Nov 2020 11:26:00 -0500 Subject: [PATCH] Updated config check --- bin/winapps | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/winapps b/bin/winapps index 29ac77c..b38bcde 100755 --- a/bin/winapps +++ b/bin/winapps @@ -1,5 +1,10 @@ #!/usr/bin/env bash +if [ ! -f "${HOME}/.config/winapps/winapps.conf" ] && [ ! -f "${HOME}/.winapps" ]; then + echo "You need to create a ~/.config/winapps/winapps.conf configuration. Exiting..." + exit +fi + DIR="$(dirname "$(readlink -f "$0")")" RUN="$(date)-${RANDOM}" @@ -40,11 +45,6 @@ if [ -z "$(which xfreerdp)" ]; then exit fi -if [ ! -f "${HOME}/.config/winapps/winapps.conf" ] && [ ! -f "${HOME}/.winapps" ]; then - echo "You need to create a ~/.config/winapps/winapps.conf configuration. Exiting..." - exit -fi - if [ -z "${RDP_IP}" ]; then if [ -z "$(groups |grep libvirt)" ]; then echo "You are not a member of the libvirt group. Run the below then reboot."