summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/poky-env-internal2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/poky-env-internal b/scripts/poky-env-internal
index 2ec07ed061..06586ec56f 100755
--- a/scripts/poky-env-internal
+++ b/scripts/poky-env-internal
@@ -31,7 +31,7 @@ if [ "x$BDIR" = "x" ]; then
BDIR=`readlink -f "$1"`
fi
fi
-if [[ "$BDIR" = /* ]] ; then
+if expr "$BDIR" : '/.*' > /dev/null ; then
BUILDDIR="$BDIR"
else
BUILDDIR="`pwd`/$BDIR"