From a8100005ab3308ad2c1921451be3728e9e5de747 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 5 Jun 2018 18:52:00 +0900 Subject: [PATCH] Replace return with exit 0 --- btcpay-setclocale.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/btcpay-setclocale.sh b/btcpay-setclocale.sh index 351b4f8..ee4444d 100755 --- a/btcpay-setclocale.sh +++ b/btcpay-setclocale.sh @@ -16,7 +16,7 @@ PSQL="docker exec $POSTGRES_CONTAINER_ID psql -h localhost -p 5432 -U postgres" if [[ "$($PSQL -c "\l $DATABASE_NAME")" != *"en_US.utf8"* ]]; then echo "Database $DATABASE_NAME already uses locale C" - return + exit 0 fi $PG_DUMP -h localhost -p 5432 -U postgres -F c -b -v -f "/tmp/$DATABASE_NAME.backup" $DATABASE_NAME