aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2017-01-17 22:25:03 +0100
committerStephane Desneux <stephane.desneux@iot.bzh>2017-02-10 16:15:00 +0100
commitbac91f4a6a5ca80491f0c6021f2d07466d7295b9 (patch)
tree0f10dd84c4cf77a1cfe84550d1602cd06644206e /contrib
parentee3da797768540af9cbb8d9f28917bac331fd8fb (diff)
contrib/create_container: fix exec dir
Change-Id: Iff823b0f3000dfb11ec2153714dcbe6eb1b0148e Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/create_container4
1 files changed, 1 insertions, 3 deletions
diff --git a/contrib/create_container b/contrib/create_container
index f03a96f..87c4f82 100755
--- a/contrib/create_container
+++ b/contrib/create_container
@@ -17,7 +17,7 @@
##########################################
CURDIR=$(cd $(dirname $0) && pwd -P)
-DEFIMAGE=$(make -s -C $CURDIR show-image)
+DEFIMAGE=$(make -s -C $CURDIR/.. show-image)
function usage() {
echo "Usage: $(basename $0) <instance ID> [image name]" >&2
@@ -33,8 +33,6 @@ case $1 in
;;
esac
-CURDIR=$(cd $(dirname $0) && pwd -P)
-
ID=$1
IMAGE=${2:-$DEFIMAGE}