Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
SPSP
Transfer Tool
Commits
bdd01dba
Commit
bdd01dba
authored
Jan 14, 2020
by
Dillenn Terumalai
🏠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some issue regarding the hash
parent
82ea15d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
spsp
spsp
+8
-2
No files found.
spsp
View file @
bdd01dba
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment