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:
parent
2bb97a5048
commit
1db2600e7d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue