From f0853f19a08cc6dcc68ae604ef5a106efae8a42c Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Wed, 14 Aug 2024 10:26:36 +0200 Subject: [PATCH] Update download-latest-java-tomcat.cfm --- download-latest-java-tomcat.cfm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/download-latest-java-tomcat.cfm b/download-latest-java-tomcat.cfm index 09a0128..b79cc7f 100644 --- a/download-latest-java-tomcat.cfm +++ b/download-latest-java-tomcat.cfm @@ -76,15 +76,18 @@ } */ - loop query="files"{ + loop query="files" { dir = mid(files.directory, find( "!", files.directory) + 2 ); - // systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true ); + if ( files.mode != "644" ) + systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true ); if ( files.type == "file" ){ file = arguments.dest & mid( dir, 2 ) & "/" & files.name; - systemOutput( file, true ); + // ßsystemOutput( file, true ); //systemOutput( fileExists( file ), true ); fileSetAccessMode( file , files.mode ); - systemOutput( fileInfo( file ).mode & " should be " & files.mode , true ); + if ( fileInfo( file ).mode != files.mode) { + throw "#File# is #fileInfo( file ).mode# should be #files.mode#"; + } } } }