1
0
Fork 0
mirror of https://github.com/Jonny007-MKD/OTR-DecodeAll synced 2025-01-22 08:49:50 +01: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 function funcRemoveFile
{ {
local file="$1" local file="$1"
if [ -e $file ]; then if [ -n "$file" -a -e "$file" ]; then
funcLog 4 "Deleting $file" funcLog 4 "Deleting $file"
rm -f "$file"; rm -f "$file";
fi fi