summaryrefslogtreecommitdiffstats
path: root/core/rootfs/rootfs-stage31/data/inc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'core/rootfs/rootfs-stage31/data/inc/functions')
-rw-r--r--core/rootfs/rootfs-stage31/data/inc/functions6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/rootfs/rootfs-stage31/data/inc/functions b/core/rootfs/rootfs-stage31/data/inc/functions
index baf31afc..6edbeffb 100644
--- a/core/rootfs/rootfs-stage31/data/inc/functions
+++ b/core/rootfs/rootfs-stage31/data/inc/functions
@@ -48,7 +48,11 @@ download() {
[ $# -ne 2 ] && echo "Error - 'download' requires 2 arguments, $# given." && return 1
if [ -z "$SLX_KCL_SERVERS" ]; then
- . "/opt/openslx/config" || echo "Error - could not source '/opt/openslx/config'"
+ if ! [ -s "/opt/openslx/config" ]; then
+ echo "Don't have any servers to download from."
+ elif ! . "/opt/openslx/config"; then
+ echo "Error - could not source '/opt/openslx/config'"
+ fi
fi
local FILE_URL="$1"