From b5818741f71260777b35fb146719ed8ce3516971 Mon Sep 17 00:00:00 2001 From: Enrico Candino Date: Mon, 16 Dec 2013 15:06:59 +0100 Subject: [PATCH] Fix on error due to directory path with spaces --- bin/lstart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/lstart b/bin/lstart index 18293a2..181df64 100755 --- a/bin/lstart +++ b/bin/lstart @@ -280,7 +280,6 @@ fi # If no lab directory has been given, assume current directory LAB_DIRECTORY=${LAB_DIRECTORY:-${PWD}} -. "$NETKIT_HOME/bin/lcommon" # Check that the lab directory exists if [ ! -d "$LAB_DIRECTORY" ]; then @@ -295,6 +294,8 @@ if containsRegexp LAB_DIRECTORY " "; then exit 1 fi +. "$NETKIT_HOME/bin/lcommon" + # Check whether parallel startup and -f are being used together if [ -f "$LAB_DIRECTORY/lab.dep" -a ! -z "$FASTMODE" -a -z "$BE_SEQUENTIAL" ]; then echo 1>&2 "Warning: fast mode is ignored when using parallel startup."