commit 3802872b2cd4503b786f565b86d73b350629d0c4 Author: Vihang Karajgaonkar Date: Wed Jul 6 15:36:35 2016 -0700 HIVE-14151 : Use of USE_DEPRECATED_CLI environment variable does not work diff --git a/bin/ext/cli.sh b/bin/ext/cli.sh index 847cf0d6593e08794aa221631962d487895a51d0..b81648d01a2bd0916849316e2eda132b60a194af 100644 --- a/bin/ext/cli.sh +++ b/bin/ext/cli.sh @@ -17,7 +17,8 @@ THISSERVICE=cli export SERVICE_LIST="${SERVICE_LIST}${THISSERVICE} " # Set old CLI as the default client -if [ -n '$USE_DEPRECATED_CLI' ]; then +# if USE_DEPRECATED_CLI is not set or is not equal to false use old CLI +if [ -z "$USE_DEPRECATED_CLI" ] || [ "$USE_DEPRECATED_CLI" != "false" ]; then USE_DEPRECATED_CLI="true" fi