diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-14 19:41:16 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-12-14 19:41:16 +0000 |
commit | d58fa7aee5519ebbcc88e156dce0c1c8aec246a1 (patch) | |
tree | 807b7a83318d75ed1c1bd7f288517d88510e621e /amiga | |
parent | 3b46161143f5651848b96bf823253016b337eadd (diff) | |
download | netsurf-d58fa7aee5519ebbcc88e156dce0c1c8aec246a1.tar.gz netsurf-d58fa7aee5519ebbcc88e156dce0c1c8aec246a1.tar.bz2 |
Actually check for the existance of the icon before attempting to copy it.
svn path=/trunk/netsurf/; revision=5913
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/dist/Install | 18 |
1 files changed, 11 insertions, 7 deletions
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 |