From 37232fb3aef9a90edecccf731ab303088ab3b6e6 Mon Sep 17 00:00:00 2001 From: Michael Yeates Date: Mon, 22 Oct 2018 19:35:28 +0200 Subject: [PATCH] Move variables to function file --- eosdac-testnet/boot.sh | 3 --- eosdac-testnet/build.sh | 3 --- eosdac-testnet/change_config.sh | 2 -- eosdac-testnet/fire.sh | 3 --- eosdac-testnet/functions.sh | 2 ++ eosdac-testnet/permissions.sh | 13 ------------- eosdac-testnet/populate.sh | 2 -- eosdac-testnet/resign.sh | 4 ---- eosdac-testnet/transfer_raw.sh | 5 ----- eosdac-testnet/update_contract.sh | 3 --- 10 files changed, 2 insertions(+), 38 deletions(-) diff --git a/eosdac-testnet/boot.sh b/eosdac-testnet/boot.sh index a3bd964..b7d7fff 100755 --- a/eosdac-testnet/boot.sh +++ b/eosdac-testnet/boot.sh @@ -1,8 +1,5 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` - source ./conf_private.sh source ./conf.sh source ./functions.sh diff --git a/eosdac-testnet/build.sh b/eosdac-testnet/build.sh index 799e448..ba008b5 100755 --- a/eosdac-testnet/build.sh +++ b/eosdac-testnet/build.sh @@ -1,8 +1,5 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` - source ./conf_private.sh source ./conf_dac.sh source ./conf.sh diff --git a/eosdac-testnet/change_config.sh b/eosdac-testnet/change_config.sh index b119184..e4e391c 100755 --- a/eosdac-testnet/change_config.sh +++ b/eosdac-testnet/change_config.sh @@ -1,7 +1,5 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` source ./conf_private.sh source ./conf_dac.sh diff --git a/eosdac-testnet/fire.sh b/eosdac-testnet/fire.sh index 839991a..e09578f 100755 --- a/eosdac-testnet/fire.sh +++ b/eosdac-testnet/fire.sh @@ -1,8 +1,5 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` - source ./conf_private.sh source ./conf_dac.sh source ./conf.sh diff --git a/eosdac-testnet/functions.sh b/eosdac-testnet/functions.sh index 0da2804..71a893f 100644 --- a/eosdac-testnet/functions.sh +++ b/eosdac-testnet/functions.sh @@ -1,4 +1,6 @@ +green=`tput setaf 2` +reset=`tput sgr0` run_cmd() { cmd="$1"; diff --git a/eosdac-testnet/permissions.sh b/eosdac-testnet/permissions.sh index 701efda..7eea03b 100755 --- a/eosdac-testnet/permissions.sh +++ b/eosdac-testnet/permissions.sh @@ -1,8 +1,5 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` - source ./conf_private.sh source ./conf_dac.sh source ./conf.sh @@ -12,16 +9,6 @@ source ./functions.sh echo -e "\n\n----------------- PERMISSIONS -------------------\n\n"; -run_cmd() { - cmd="$1"; - echo -e "\n\n >> ${green} Next command: $1 \n\n ${reset}"; - #wait; - #read -p "Press enter to continue ${reset}"; - eval "cleos --wallet-url $WALLET_URL -u $API_URL $1"; -} - - - dacaccounts="$dacextra $dacowner $dactokens $dacauthority $daccustodian" diff --git a/eosdac-testnet/populate.sh b/eosdac-testnet/populate.sh index 056618c..68a0068 100755 --- a/eosdac-testnet/populate.sh +++ b/eosdac-testnet/populate.sh @@ -1,7 +1,5 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` source ./conf_private.sh source ./conf_dac.sh diff --git a/eosdac-testnet/resign.sh b/eosdac-testnet/resign.sh index d3a0451..fa86428 100755 --- a/eosdac-testnet/resign.sh +++ b/eosdac-testnet/resign.sh @@ -1,9 +1,5 @@ #!/bin/bash - -green=`tput setaf 2` -reset=`tput sgr0` - source ./conf_private.sh source ./conf_dac.sh source ./conf.sh diff --git a/eosdac-testnet/transfer_raw.sh b/eosdac-testnet/transfer_raw.sh index 5eeea5f..c5893c6 100755 --- a/eosdac-testnet/transfer_raw.sh +++ b/eosdac-testnet/transfer_raw.sh @@ -1,15 +1,10 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` - source ./conf_private.sh source ./conf_dac.sh source ./conf.sh source ./functions.sh - - echo -e "\n\n----------------- TRANSFER TOKENS -------------------\n\n"; diff --git a/eosdac-testnet/update_contract.sh b/eosdac-testnet/update_contract.sh index bb03529..a9b07e2 100755 --- a/eosdac-testnet/update_contract.sh +++ b/eosdac-testnet/update_contract.sh @@ -1,8 +1,5 @@ #!/bin/bash -green=`tput setaf 2` -reset=`tput sgr0` - source ./conf_private.sh source ./conf_dac.sh source ./conf.sh