浏览代码

ENH: Fix "build.sh" to allow exection from any directory

Jean-Christophe Fillion-Robin 8 年之前
父节点
当前提交
9e7e7d4238
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      CMake/CircleCI/build.sh

+ 5 - 1
CMake/CircleCI/build.sh

@@ -1,6 +1,10 @@
-#!/bin/sh
+#!/bin/bash
 
 script_dir="`cd $(dirname $0); pwd`"
 
+pushd $script_dir
+
 docker build -t commontk/ctk-test:opengl-qt4 $script_dir -f Dockerfile-qt4
 docker build -t commontk/ctk-test:opengl-qt5 $script_dir -f Dockerfile-qt5
+
+popd