From ab13523b261dc973410b06d6ebf6ad6f395329bb Mon Sep 17 00:00:00 2001 From: kaotisk Date: Thu, 15 Dec 2022 06:39:34 +0200 Subject: Adapting to 96ae225b2a179ec36fdb01eaf906fec096002a08 change. Commented out git usage. --- bin/profile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'bin/profile') diff --git a/bin/profile b/bin/profile index 4cc0827..3dade9b 100755 --- a/bin/profile +++ b/bin/profile @@ -10,7 +10,7 @@ logit(){ if [ ! -d $ZPROFILEDIR ]; then mkdir $ZPROFILEDIR cd $ZPROFILEDIR - git init +# git init # echo "Profile repository" > README # echo "Qmetc" >> README # git add README @@ -78,12 +78,12 @@ EOF add $ZPROPERTY_KEY echo "Adding to git repo..." cd $ZPROFILEDIR - git add $ZPROPERTY_KEY - git commit -m "Added ${ZPROPERTY_KEY} with ${ZPROPERTY_VALUE}" - git clean --force +# git add $ZPROPERTY_KEY +# git commit -m "Added ${ZPROPERTY_KEY} with ${ZPROPERTY_VALUE}" +# git clean --force else - echo "error" - exit 244 + echo "Couldn't write to file $ZPROFILEDIR/$TO_FILE" + exit 1 fi } propset(){ @@ -148,10 +148,6 @@ index(){ done echo "}" } -title(){ - echo "ak-profile-cli" - echo "--------------" -} import(){ if [ ! -z $1 ] then @@ -203,10 +199,8 @@ EOF fi } usage(){ - title - echo "" echo "Usage:" - echo " $0 command [options]" + echo " $PROGRAM command [options]" echo "" echo "All you need to know is that there are two options available:" echo "help Prints this help message" -- cgit v1.2.3