From aeda467f9c619deb30306023aab8a0e26c42589e Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 1 Feb 2023 03:24:43 +0200 Subject: Removed unused code Signed-off-by: kaotisk --- bin/profile | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) mode change 100755 => 100644 bin/profile (limited to 'bin/profile') diff --git a/bin/profile b/bin/profile old mode 100755 new mode 100644 index 3dade9b..0226c37 --- a/bin/profile +++ b/bin/profile @@ -10,15 +10,11 @@ logit(){ if [ ! -d $ZPROFILEDIR ]; then mkdir $ZPROFILEDIR cd $ZPROFILEDIR -# git init -# echo "Profile repository" > README -# echo "Qmetc" >> README -# git add README -# git commit -m "Initiated profile repository" - logit "[INFO]" "zprofiledir created along with git repo" + logit "[INFO]" "zprofiledir created" else logit "[INFO]" "zprofiledir found" fi + tempassin(){ if [ ! -z $1 ] then @@ -119,15 +115,6 @@ propset(){ else echo "conditions unmet" exit 244 -# tempassin $TEMP -# pwd -# export PROFILE_FILE="$(date -u +%s)" -# vi $PROFILE_FILE -# echo "Renaming..." -# TITLE="$(head -n 1 $PROFILE_FILE)" -# TO_FILE=$PROFILE_FILE-$(echo $TITLE | tr '[:upper:]' '[:lower:]' | sed -e 's/ /\_/g' ) -# add $ZPROFILEDIR/$TO_FILE -# # rm -rf $TEMP fi } index(){ @@ -202,14 +189,18 @@ usage(){ echo "Usage:" echo " $PROGRAM command [options]" echo "" - echo "All you need to know is that there are two options available:" - echo "help Prints this help message" - echo "index Show current status" - echo "show Show profile" - echo "import Import a folder to zchain #TODO" - echo "add Creates a data file from the profile file you point to" - echo "set Sets a profile value" - echo "get Gets a profile" + echo "Indexes, shows, imports, adds, sets and gets values from and to the" + echo "zchain and files." + echo "" + echo -e "\thelp\t\t\t\tPrints this help message" + echo -e "\tindex\t\t\t\tShow current status" + echo -e "\tshow \t\t\tShow profile entry from specified DATA IPFS CIDv0" + echo -e "\tset \t\tSets a profile value" + echo -e "\tget \t\t\tGets a profile value from the on-disk file." + echo "" + echo "Advanced (use with caution may produce duplicate entries):" + echo -e "\tadd \t\t\tCreates a data file from the profile file you point to (file should already be in ZPROFILEDIR." + echo -e "\timport \t\t\tImport a folder to zchain #TODO" echo "" exit 0 } -- cgit v1.2.3