$CACHE_DIR is not created in crystal
Signed-off-by: Hu XueJiao 1034502035@qq.com --- daemon/multi-qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon/multi-qemu b/daemon/multi-qemu index 90197dae..87b40758 100755 --- a/daemon/multi-qemu +++ b/daemon/multi-qemu @@ -13,7 +13,7 @@ multi_qemu() export CCI_SRC=${CCI_SRC:-"/c/compass-ci"} local hostname=$tbox_group.$HOSTNAME - cd "$CACHE_DIR" + [ -n "$CACHE_DIR" ] && cd "$CACHE_DIR" $CCI_SRC/providers/multi-qemu -n "$hostname" -c "$nr_vm" -q "$queues" }
On Mon, Dec 21, 2020 at 05:55:46PM +0800, Hu Xuejiao wrote:
$CACHE_DIR is not created in crystal
Signed-off-by: Hu XueJiao 1034502035@qq.com
daemon/multi-qemu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/daemon/multi-qemu b/daemon/multi-qemu index 90197dae..87b40758 100755 --- a/daemon/multi-qemu +++ b/daemon/multi-qemu @@ -13,7 +13,7 @@ multi_qemu() export CCI_SRC=${CCI_SRC:-"/c/compass-ci"} local hostname=$tbox_group.$HOSTNAME
- cd "$CACHE_DIR"
- [ -n "$CACHE_DIR" ] && cd "$CACHE_DIR"
use -d to test directory?
Thanks, Yong
On Mon, Dec 21, 2020 at 05:55:46PM +0800, Hu Xuejiao wrote:
$CACHE_DIR is not created in crystal
What is the result you want? Do not display error output?
Thanks, RenWen
- cd "$CACHE_DIR"
- [ -n "$CACHE_DIR" ] && cd "$CACHE_DIR" $CCI_SRC/providers/multi-qemu -n "$hostname" -c "$nr_vm" -q "$queues"
}
-- 2.23.0