From 3796af021d20d9a9e3ea499d3e72e6a9e42e2a2e Mon Sep 17 00:00:00 2001 From: Bob Mottram <bob@freedombone.net> Date: Sat, 17 Nov 2018 10:57:14 +0000 Subject: [PATCH] Remove images file --- src/freedombone-deploy-website | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/freedombone-deploy-website b/src/freedombone-deploy-website index 109b91746..5988f97bd 100755 --- a/src/freedombone-deploy-website +++ b/src/freedombone-deploy-website @@ -301,7 +301,9 @@ cp -r ../webadmin/EN/help_*.html "$dest_dir" if [ ! -d "$dest_dir/downloads" ]; then mkdir "$dest_dir/downloads" fi -cp "$lang/images.txt" "$dest_dir/downloads" +if [ -f "$dest_dir/downloads/images.txt" ]; then + rm "$dest_dir/downloads/images.txt" +fi chown -R www-data:www-data "$dest_dir" if [ ! "$rootdir" ]; then -- GitLab