Skip to content

Commit 116bcab

Browse files
committed
Fixed error when link to Latest build was not yet created
1 parent 42be78a commit 116bcab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

run

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ on setupFolders()
114114
do shell script "mkdir Results/Build-" & (do shell script "date +'%Y.%m.%d-%H:%M:%S'" as string)
115115

116116
-- Create the link to the latest build
117-
do shell script "rm Latest"
117+
try
118+
do shell script "rm Latest"
119+
on error errMsg -- to ignore errors when the folder was not yet created
120+
end try
121+
118122
do shell script "ln -s Results/Build-" & (do shell script "date +'%Y.%m.%d-%H:%M:%S'" as string) & " Latest"
119123
try
120124
do shell script "mv Results/Run* Results/Build-" & (do shell script "date +'%Y.%m.%d-%H:%M:%S'" as string) & "/"

0 commit comments

Comments
 (0)