summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-12-14 19:41:16 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-12-14 19:41:16 +0000
commitd58fa7aee5519ebbcc88e156dce0c1c8aec246a1 (patch)
tree807b7a83318d75ed1c1bd7f288517d88510e621e
parent3b46161143f5651848b96bf823253016b337eadd (diff)
downloadnetsurf-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
-rwxr-xr-xamiga/dist/Install18
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