From 43144aab3f931a6225333bf9d3380f118370b53d Mon Sep 17 00:00:00 2001 From: GuangrongFu Date: Thu, 11 Mar 2021 08:31:14 +0800 Subject: [PATCH] Fixed a Shell Error Change-Id: I2c9c66804ea6e1f3a8ba9ab14bead41e9f15fbd9 Issue-ID: HOLMES-419 Signed-off-by: GuangrongFu --- engine-d-standalone/src/main/assembly/bin/initDB.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine-d-standalone/src/main/assembly/bin/initDB.sh b/engine-d-standalone/src/main/assembly/bin/initDB.sh index cc27b09..2e5d605 100644 --- a/engine-d-standalone/src/main/assembly/bin/initDB.sh +++ b/engine-d-standalone/src/main/assembly/bin/initDB.sh @@ -51,7 +51,7 @@ psql -U "$user" -p "$port" -h "$host" -d "$dbname" -f $main_path/dbscripts/postg psql -U "$user" -p "$port" -h "$host" -d "$dbname" --command 'select * from alarm_info;' sql_result=$? -if [ $need_unset = 1 ]; then +if [ "$need_unset"x == "1"x ]; then unset PGPASSWORD fi -- 2.16.6