diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:23:23 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2021-12-26 06:23:23 +0200 |
commit | b44bbcf99996e8f0c6a774cc7044ced11949ffb2 (patch) | |
tree | 30f7cb4177b10b7e8034fc33c39d70a60777a2e6 | |
parent | 52bf926baf3957c799da01d7329db5c8ea07bb22 (diff) | |
download | arching-kaos-tools-b44bbcf99996e8f0c6a774cc7044ced11949ffb2.tar.gz arching-kaos-tools-b44bbcf99996e8f0c6a774cc7044ced11949ffb2.tar.bz2 arching-kaos-tools-b44bbcf99996e8f0c6a774cc7044ced11949ffb2.zip |
Turned echos to log messages
-rwxr-xr-x | bin/enter | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -40,36 +40,36 @@ do if [ "$zblock" != "$seed" ] then # Announce to stdout which ZBLOCK is being read at the moment - echo "Examining $zblock" + logthis "Examining $zblock" # We create files named after each ZBLOCK IPFS CID for later # reference. Files are empty. touch $ZBLOCKDIR/$zblock - echo "Created reference" + logthis "Created reference" # We concatenate the zblock's contents, pipe them through filter # json2bash and output them to tmp-file ipfs cat $zblock | json2bash > $TEMPASSIN/tmp-zblock - echo "ZBLOCK READ" + logthis "ZBLOCK READ" # Supposingly you are on a safe environment and you only have # access to your chain, I would consider mild secure to source # the files into your bash. # File an issue/pull request if you think it can be done better!! source $TEMPASSIN/tmp-zblock - echo "ZBLOCK SOURCED" + logthis "ZBLOCK SOURCED" # Same as above applies to BLOCK and DATA subparts of each ZBLOCK # BLOCKS ipfs cat $block | json2bash > $TEMPASSIN/tmp-block source $TEMPASSIN/tmp-block - echo "BLOCK SOURCED" + logthis "BLOCK SOURCED" touch $BLOCKDIR/$block - echo "BLOCK REFERENCED" + logthis "BLOCK REFERENCED" module="$(echo $action | sed -e 's/\// /g' | awk '{ print $1 }')" - echo "DATA is $module module." + logthis "DATA is $module module." command="$(echo $action | sed -e 's/\// /g' | awk '{ print $2 }')" - echo "COMMAND is $command" + logthis "COMMAND is $command" profile show $data # DATA (but we don't source it's stuff) # Only print to stdout |