From 9ded788dee1f1104ba092b6eab9403f8849debe7 Mon Sep 17 00:00:00 2001 From: pseudozach Date: Thu, 22 Jun 2023 22:23:29 -0700 Subject: [PATCH] Update seed-chainstate.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it was failing with the error below, this should fix it. >chown: missing operand after ‘xxx/stacks-blockchain-docker/persistent-data/mainnet’ Try 'chown --help' for more information. Error setting file permissions --- scripts/seed-chainstate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/seed-chainstate.sh b/scripts/seed-chainstate.sh index 40ac603..e4fe5d6 100755 --- a/scripts/seed-chainstate.sh +++ b/scripts/seed-chainstate.sh @@ -13,7 +13,7 @@ if [ ! -f "${ENV_FILE}" ];then cp -a "${SCRIPTPATH}/sample.env" "${ENV_FILE}" fi source "${ENV_FILE}" -export CURRENT_USER=$(who am i | awk '{print $1}') +export CURRENT_USER=$(whoami | awk '{print $1}') COLRED=$'\033[31m' # Red COLGREEN=$'\033[32m' # Green