diff options
author | kaotisk <kaotisk@arching-kaos.com> | 2022-02-11 09:33:54 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.com> | 2022-02-11 09:33:54 +0200 |
commit | 221672ff13aeb390bccbf14a443733667ac9a77b (patch) | |
tree | e54585ed84a603843c85b63b6b788b6ad0091c68 /bin | |
parent | d643dfcd3548fc9c0fbb01bee3a88984000ecea6 (diff) | |
download | arching-kaos-tools-221672ff13aeb390bccbf14a443733667ac9a77b.tar.gz arching-kaos-tools-221672ff13aeb390bccbf14a443733667ac9a77b.tar.bz2 arching-kaos-tools-221672ff13aeb390bccbf14a443733667ac9a77b.zip |
Added some more debug messages
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-files | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/bin/ak-files b/bin/ak-files index 7755c58..14657a4 100755 --- a/bin/ak-files +++ b/bin/ak-files @@ -68,10 +68,21 @@ main(){ logthis "error" fi logthis "Signing..." - SIGN_FILE=$FILE".asc" - gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $SIGN_FILE $FILE + SIGN_FILE=$FILENAME".asc" + gpg2 --detach-sign --sign-with $FINGERPRINT --armor --output $TEMPASSIN/$SIGN_FILE $TEMPASSIN/$FILE + if [ $? == 0 ]; then + logthis "Signed" + else + logthis "Error while signing" + fi - SIGNATURE=$(ipfs add -q $SIGN_FILE) + logthis "Adding signature to IPFS" + SIGNATURE=$(ipfs add -q $TEMPASSIN/$SIGN_FILE) + if [ $? == 0 ]; then + logthis "Added" + else + logthis "Error while adding" + fi cat > $TEMPASSIN/data <<EOF { |