aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-sm-files
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 19:26:24 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 19:26:24 +0200
commitf8d2236e55e5c369b218017d1de1058d6a8ee361 (patch)
tree1cdd4ea1476c3062d3dd38ee1ba62d6bb98eb680 /bin/ak-sm-files
parent7affa2082f61455a413d0c8fea08e79935d4f308 (diff)
downloadarching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.gz
arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.tar.bz2
arching-kaos-tools-f8d2236e55e5c369b218017d1de1058d6a8ee361.zip
Log formatting adjustment
Diffstat (limited to 'bin/ak-sm-files')
-rwxr-xr-xbin/ak-sm-files14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/ak-sm-files b/bin/ak-sm-files
index 17635d6..4265617 100755
--- a/bin/ak-sm-files
+++ b/bin/ak-sm-files
@@ -44,14 +44,14 @@ main(){
cd $TEMPASSIN
echo "Adding $FILENAME"
- logit "[INFO]" "Switching to tmp folder..."
+ logit "INFO" "Switching to tmp folder..."
if [ $? == 0 ]; then
logit "INFO" "Success"
else
logit "ERROR" "Error with tmp folder"
exit 5
fi
- logit "[INFO]" "Copying $1 to $TEMPASSIN"
+ logit "INFO" "Copying $1 to $TEMPASSIN"
cp $CRP/$FILENAME $FILENAME
if [ $? == 0 ]; then
@@ -60,7 +60,7 @@ main(){
logit "ERROR" "Error copying..."
fi
- logit "[INFO]" "Adding $FILENAME to IPFS..."
+ logit "INFO" "Adding $FILENAME to IPFS..."
FILE_IPFS_HASH=$(ak-ipfs-add $FILENAME)
if [ $? == 0 ]; then
logit "INFO" "Added $FILENAME to IPFS"
@@ -68,7 +68,7 @@ main(){
logit "ERROR" "Error in adding the $FILENAME to IPFS"
fi
- logit "[INFO]" "Adding $FILE to SHAMAPSYS..."
+ logit "INFO" "Adding $FILE to SHAMAPSYS..."
FILEMAP_SHA512_HASH=$(ak-sm-filesplitter $FILENAME)
if [ $? == 0 ]; then
logit "INFO" "Added $FILENAME to SHAMAPSYS"
@@ -76,7 +76,7 @@ main(){
logit "ERROR" "Error in adding the $FILENAME to SHAMAPSYS"
fi
- logit "[INFO]" "Signing..."
+ logit "INFO" "Signing..."
SIGN_FILE=$FILENAME".asc"
gpg2 --homedir $AK_GPGHOME --detach-sign --sign-with $AK_FINGERPRINT --armor --output $SIGN_FILE $FILENAME
if [ $? == 0 ]; then
@@ -85,7 +85,7 @@ main(){
logit "ERROR" "Error while signing"
fi
- logit "[INFO]" "Adding signature to IPFS"
+ logit "INFO" "Adding signature to IPFS"
SIGNATURE=$(ak-ipfs-add $SIGN_FILE)
if [ $? == 0 ]; then
logit "INFO" "Added"
@@ -93,7 +93,7 @@ main(){
logit "ERROR" "Error while adding"
fi
- logit "[INFO]" "Adding signature to SHAMAPSYS"
+ logit "INFO" "Adding signature to SHAMAPSYS"
SHAMAPSIGMAP=$(ak-sm-filesplitter $SIGN_FILE)
if [ $? == 0 ]; then
logit "INFO" "Added"