diff --git a/scripts/upgrade b/scripts/upgrade index 7464447..bc4f8c1 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -144,7 +144,7 @@ then # Remove the lock if it exists lock=$final_path/documents/install.lock - if -f $lock + if [ -f $lock ] then ynh_secure_remove $lock fi