1
0
Fork 0
mirror of https://github.com/Jonny007-MKD/OTR-DecodeAll synced 2024-05-02 20:54:06 +02:00

Do not delete no files (empty string)

This commit is contained in:
Jonny007-MKD 2015-03-06 22:55:23 +01:00
parent 2bb97a5048
commit 1db2600e7d

View file

@ -596,7 +596,7 @@ function funcRemove {
function funcRemoveFile
{
local file="$1"
if [ -e $file ]; then
if [ -n "$file" -a -e "$file" ]; then
funcLog 4 "Deleting $file"
rm -f "$file";
fi