Commit bdd01dba authored by Dillenn Terumalai's avatar Dillenn Terumalai 🏠

Fixed some issue regarding the hash

parent 82ea15d1
......@@ -221,6 +221,10 @@ if [ $# -gt 0 ]; then
LOGFILE="./$LOGS/spsp-$CURRENTDATE.log"
if [ ! -f $LOGFILE ]; then
touch $LOGFILE
fi
if [ ! -x "$(command -v gpg)" ]; then
echo "Error: gpg command is not available, this error may happen when you use a CRON task. Modifying the PATH..."
export PATH=$PATH:/usr/local/bin
......@@ -257,13 +261,15 @@ if [ $# -gt 0 ]; then
fi
done
for FILE in ./$OUTBOX/*; do
cd $OUTBOX;
for FILE in *.*; do
if [ -f "$FILE" ]; then
echo "SPSP: Encrypting $FILE using SPSP public key..."
encryptFile $FILE
echo "SPSP: $FILE is now encrypted"
echo "SPSP: Signing $FILE using SHA-256 algorithm..."
signFile $FILE.gpg
signFile "$FILE"
echo "SPSP: $FILE is now signed!"
if [ -f "$FILE.gpg.sha256" ] && [ -f "$FILE.gpg" ]; then
echo "SPSP: Starting the transfer"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment