fixed indentation

This commit is contained in:
jash
2018-10-06 18:52:37 +02:00
committed by kexkey
parent 5176d867e8
commit 54f1d0461e
5 changed files with 37 additions and 37 deletions

View File

@@ -4,27 +4,27 @@ const featureCondition = function(props) {
};
module.exports = {
name: function() {
return name;
},
prompts: function( utils ) {
return [{
when: featureCondition,
type: 'confirm',
name: 'bitcoin_prune',
default: utils._getDefault( 'bitcoin_prune' ),
message: 'Run bitcoin node in prune mode?'+'\n',
},
{
when: featureCondition,
type: 'input',
name: 'bitcoin_external_ip',
default: utils._getDefault( 'bitcoin_external_ip' ),
validate: utils._ipValidator,
message: 'What external ip does your bitcoin full node have?'+'\n',
}];
},
env: function( props ) {
return 'VAR0=VALUE0\nVAR1=VALUE1'
}
name: function() {
return name;
},
prompts: function( utils ) {
return [{
when: featureCondition,
type: 'confirm',
name: 'bitcoin_prune',
default: utils._getDefault( 'bitcoin_prune' ),
message: 'Run bitcoin node in prune mode?'+'\n',
},
{
when: featureCondition,
type: 'input',
name: 'bitcoin_external_ip',
default: utils._getDefault( 'bitcoin_external_ip' ),
validate: utils._ipValidator,
message: 'What external ip does your bitcoin full node have?'+'\n',
}];
},
env: function( props ) {
return 'VAR0=VALUE0\nVAR1=VALUE1'
}
};

View File

@@ -1,3 +1,3 @@
{
"optOut": true
"optOut": true
}

View File

@@ -8,9 +8,9 @@
# commands not needed for runtime
cyphernodeconf_configure() {
local current_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
local current_path="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
docker run -v $current_path/../data:/data \
--log-driver=none\
--rm -it cyphernodeconf:latest
docker run -v $current_path/../data:/data \
--log-driver=none\
--rm -it cyphernodeconf:latest
}

View File

@@ -3,8 +3,8 @@
. ./trace.sh
build_docker_image() {
trace "building docker image: $1 with tag $2:latest"
docker build $1 -t $2:latest
trace "building docker image: $1 with tag $2:latest"
docker build $1 -t $2:latest
}

View File

@@ -2,14 +2,14 @@
trace()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] ${1}" > /dev/stderr
fi
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] ${1}" > /dev/stderr
fi
}
trace_rc()
{
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] Last return code: ${1}" > /dev/stderr
fi
if [ -n "${TRACING}" ]; then
echo "[$(date +%Y-%m-%dT%H:%M:%S%z)] Last return code: ${1}" > /dev/stderr
fi
}