From 54f1d0461e2b73108ef7c57c12570fb5735baecf Mon Sep 17 00:00:00 2001 From: jash Date: Sat, 6 Oct 2018 18:52:37 +0200 Subject: [PATCH] fixed indentation --- .../generators/app/features/bitcoin.js | 46 +++++++++---------- install/insight-yo.json | 2 +- install/script/cyphernodeconf.sh | 8 ++-- install/script/docker.sh | 6 +-- install/script/trace.sh | 12 ++--- 5 files changed, 37 insertions(+), 37 deletions(-) diff --git a/install/generator-cyphernode/generators/app/features/bitcoin.js b/install/generator-cyphernode/generators/app/features/bitcoin.js index 1277546..3b7b959 100644 --- a/install/generator-cyphernode/generators/app/features/bitcoin.js +++ b/install/generator-cyphernode/generators/app/features/bitcoin.js @@ -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' + } }; \ No newline at end of file diff --git a/install/insight-yo.json b/install/insight-yo.json index 3f79169..63a7153 100644 --- a/install/insight-yo.json +++ b/install/insight-yo.json @@ -1,3 +1,3 @@ { - "optOut": true + "optOut": true } \ No newline at end of file diff --git a/install/script/cyphernodeconf.sh b/install/script/cyphernodeconf.sh index f5644a9..a057b0c 100755 --- a/install/script/cyphernodeconf.sh +++ b/install/script/cyphernodeconf.sh @@ -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 } \ No newline at end of file diff --git a/install/script/docker.sh b/install/script/docker.sh index 19de4e2..78447df 100755 --- a/install/script/docker.sh +++ b/install/script/docker.sh @@ -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 } diff --git a/install/script/trace.sh b/install/script/trace.sh index 34a18df..b67a0cf 100644 --- a/install/script/trace.sh +++ b/install/script/trace.sh @@ -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 }