From 903bc60be3600288537d0f9828338ace84a4db24 Mon Sep 17 00:00:00 2001 From: dangqingqing Date: Wed, 31 Aug 2016 15:57:06 +0000 Subject: [PATCH] Bug fix for preprocess.sh in quick start. ISSUE=4611111 git-svn-id: https://svn.baidu.com/idl/trunk/paddle@1469 1ad973e4-5ce8-4261-8a94-b56d1f490c56 --- demo/quick_start/preprocess.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/quick_start/preprocess.sh b/demo/quick_start/preprocess.sh index 516b655e4b..fb2bee98be 100755 --- a/demo/quick_start/preprocess.sh +++ b/demo/quick_start/preprocess.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright (c) 2016 Baidu, Inc. All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -33,7 +33,7 @@ test_num=$((min_len/10)) if [ $test_num -gt 12500 ];then test_num=12500 fi -train_num=((min_len-test_num)) +train_num=$((min_len-test_num)) head -n$train_num pos.shuffed >train.pos head -n$train_num neg.shuffed >train.neg -- GitLab