-bash: pushd: directory stack empty
Command from Coin cashew
pushd +1
slotsPerKESPeriod=$(cat NODE_HOME/{NODE_CONFIG}-shelley-genesis.json | jq -r ‘.slotsPerKESPeriod’)
echo slotsPerKESPeriod: ${slotsPerKESPeriod}
-bash: pushd: directory stack empty
Command from Coin cashew
pushd +1
slotsPerKESPeriod=$(cat NODE_HOME/{NODE_CONFIG}-shelley-genesis.json | jq -r ‘.slotsPerKESPeriod’)
echo slotsPerKESPeriod: ${slotsPerKESPeriod}
Im getting a error with the pushd +1 command
https://www.coincashew.com/coins/overview-ada/guide-how-to-build-a-haskell-stakepool-node#9-generate-block-producer-keys
Maybe you missed the previous command to call:
Air-gapped offline machine
mkdir $HOME/cold-keys
pushd $HOME/cold-keys
I did the ```
pushd $HOME/cold-keys (on my cold storage, should I do this same command on my block producer node?)
The instructions say to use this on the block producer:
Determine the number of slots per KES period from the genesis file.
block producer node
block producer node
pushd +1
slotsPerKESPeriod=$(cat $NODE_HOME/${NODE_CONFIG}-shelley-genesis.json | jq -r ‘.slotsPerKESPeriod’)
echo slotsPerKESPeriod: ${slotsPerKESPeriod}
pushd
is just a directory selector
so when you call pushd $HOME/cold-keys
then the current directory ./
will be $HOME/cold-keys
and to go back to the parent directory, which is $HOME
you can navigate by using pushd +1. so basically cd ../
Okay thanks for that information, so its not really affecting my setup.