aboutsummaryrefslogtreecommitdiff
path: root/bin/profile
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2022-10-25 13:32:57 +0300
committerkaotisk <kaotisk@arching-kaos.org>2022-10-25 13:32:57 +0300
commitec812d4606fcda595448967b04ec6ee59ecba979 (patch)
tree9b46ab5d0ebdd1dca34ec33e3db4511c07c9345f /bin/profile
parentc230f21f1a7d52418cdc025b15e5cbd669204d9f (diff)
downloadarching-kaos-tools-ec812d4606fcda595448967b04ec6ee59ecba979.tar.gz
arching-kaos-tools-ec812d4606fcda595448967b04ec6ee59ecba979.tar.bz2
arching-kaos-tools-ec812d4606fcda595448967b04ec6ee59ecba979.zip
Adapting to 96ae225b2a179ec36fdb01eaf906fec096002a08 change
Diffstat (limited to 'bin/profile')
-rwxr-xr-xbin/profile12
1 files changed, 9 insertions, 3 deletions
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