Commit 6c3a3b50 authored by Dillenn Terumalai's avatar Dillenn Terumalai
Browse files

Upload the hash last, so it allows to check upload completion

parent bdd01dba
......@@ -273,8 +273,8 @@ if [ $# -gt 0 ]; then
echo "SPSP: $FILE is now signed!"
if [ -f "$FILE.gpg.sha256" ] && [ -f "$FILE.gpg" ]; then
echo "SPSP: Starting the transfer"
transferFile $FILE.gpg.sha256
transferFile $FILE.gpg
transferFile $FILE.gpg.sha256
echo "SPSP: $FILE has been transferred sucessfully!"
echo "SPSP: Removing unencrypted version of $FILE..."
rm $FILE
......@@ -321,7 +321,7 @@ if [ $# -gt 0 ]; then
encryptFile $@
else
message="Command does not exist, please check the help\n ${COL_LGREEN}./script.sh help${COL_RESET}"
message="Command does not exist, please check the help\n ${COL_LGREEN}./spsp help${COL_RESET}"
printf "$message\n"
fi
fi
\ No newline at end of file
Supports Markdown
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