From ec812d4606fcda595448967b04ec6ee59ecba979 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Tue, 25 Oct 2022 13:32:57 +0300 Subject: Adapting to 96ae225b2a179ec36fdb01eaf906fec096002a08 change --- bin/profile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'bin/profile') diff --git a/bin/profile b/bin/profile index c779ba7..4cc0827 100755 --- a/bin/profile +++ b/bin/profile @@ -1,6 +1,12 @@ #!/bin/bash +PROGRAM="$(basename $0)" ZPROFILEDIR="$WORKDIR/profile" TEMP="/tmp/aktmp" + +logit(){ + logthis "<$PROGRAM>" "$1" "$2" +} + if [ ! -d $ZPROFILEDIR ]; then mkdir $ZPROFILEDIR cd $ZPROFILEDIR @@ -9,9 +15,9 @@ if [ ! -d $ZPROFILEDIR ]; then # echo "Qmetc" >> README # git add README # git commit -m "Initiated profile repository" - logthis "[INFO]" "zprofiledir created along with git repo" + logit "[INFO]" "zprofiledir created along with git repo" else - logthis "[INFO]" "zprofiledir found" + logit "[INFO]" "zprofiledir found" fi tempassin(){ if [ ! -z $1 ] @@ -32,7 +38,7 @@ tempassin(){ show(){ if [ ! -z $1 ] then - logthis "[INFO]" "Working with $1" + logit "[INFO]" "Working with $1" echo '"data":"'$1'",' echo '"'$1'":'$(ipfs cat $1)',' #ipfs cat $1 -- cgit v1.2.3