From 845b4ff87ff5e111cc3c58b12d7e5da558ac1074 Mon Sep 17 00:00:00 2001 From: Ting Wang Date: Fri, 8 Sep 2017 22:08:12 +0800 Subject: [PATCH] fix the double caret bug in sample.sh when executed in old bash version of enterprise os --- build/bin/sample.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/bin/sample.sh b/build/bin/sample.sh index dc98665..9545362 100755 --- a/build/bin/sample.sh +++ b/build/bin/sample.sh @@ -47,8 +47,7 @@ fi hadoop ${hadoop_conf_param} fs -put * ${hdfs_tmp_dir}/sample_cube/data/ hive_client_mode=`bash ${KYLIN_HOME}/bin/get-properties.sh kylin.source.hive.client` -sample_database=`bash ${KYLIN_HOME}/bin/get-properties.sh kylin.source.hive.database-for-flat-table` -sample_database=${sample_database^^} +sample_database=`bash ${KYLIN_HOME}/bin/get-properties.sh kylin.source.hive.database-for-flat-table | tr [a-z] [A-Z]` echo "Going to create sample tables in hive to database "$sample_database" by "$hive_client_mode if [ "${hive_client_mode}" == "beeline" ] -- 2.9.0.windows.1