From 31be9f6f20bac11120b8064c5a8ba78e4c713ade Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 15 Sep 2022 00:22:26 +0100 Subject: Fixed breaking if missing conf file --- src/profile.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/profile.sh') diff --git a/src/profile.sh b/src/profile.sh index 165bf0a..6eb3bbf 100755 --- a/src/profile.sh +++ b/src/profile.sh @@ -8,6 +8,8 @@ export HBAR_RED="-c ${BLACK}${BG_RED}" export CONF_FILE="/etc/xipkg.conf" +[ ! -f "$CONF_FILE" ] && echo "No config found!" && exit 1 + export CURL_OPTS="-sSL" export DEFAULT_OPTION=$(parseconf -v default_cmd) -- cgit v1.2.1