Commit 76228727 authored by Dillenn Terumalai's avatar Dillenn Terumalai
Browse files

Fixed issues regarding rm command

parent 65c530d2
ID=labo1
ID=TST_0001
HOST=spsp-sftp.vital-it.ch
SFTP_URL=${ID}@${HOST}:/data
\ No newline at end of file
......@@ -273,12 +273,12 @@ if [ $# -gt 0 ]; then
transferFile $FILE.gpg
echo "SPSP: $FILE has been transferred sucessfully!"
echo "SPSP: Removing unencrypted version of $FILE..."
rm "$FILE"
rm $FILE
echo "SPSP: Deleted!"
if [ "$1" == "--no-archive" ] || [ "$1" == "no-archive" ]; then
if [ "$2" == "--no-archive" ] || [ "$1" == "no-archive" ]; then
echo "SPSP: 'No archive' mode is activated, removing archives..."
rm "$FILE.gpg"
rm "$FILE.gpg.sha256"
rm $FILE.gpg
rm $FILE.gpg.sha256
else
echo "SPSP: Moving $FILE.gpg and $FILE.gpg.sha256 to '$SENT' directory!"
mv $FILE.gpg.sha256 ./$SENT/.
......
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