From d58fa7aee5519ebbcc88e156dce0c1c8aec246a1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 14 Dec 2008 19:41:16 +0000 Subject: Actually check for the existance of the icon before attempting to copy it. svn path=/trunk/netsurf/; revision=5913 --- amiga/dist/Install | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'amiga/dist') diff --git a/amiga/dist/Install b/amiga/dist/Install index 2c36737d8..bab4f9204 100755 --- a/amiga/dist/Install +++ b/amiga/dist/Install @@ -105,13 +105,17 @@ ) (set #theme-icon (tackon @default-dest (tackon #theme "NetSurf.info"))) - (set #options-exist (exists #theme-icon)) - - (copyfiles - (prompt "Copying theme icon") - (source #theme-icon) - (help @copyfiles-help) - (dest @default-dest) + (set #icon-exists (exists #theme-icon)) + + (if #icon-exists + ( + (copyfiles + (prompt "Copying theme icon") + (source #theme-icon) + (help @copyfiles-help) + (dest @default-dest) + ) + ) ) (textfile -- cgit v1.2.3