0
0

linux cmd

This commit is contained in:
Marco Maatz 2025-06-23 14:42:28 +02:00
parent 03480bd468
commit 3401b0ff60

View File

@ -32,7 +32,7 @@ jobs:
curl -O -R $downloadUrl
# Get the file creation date and save it into a variable
fileCreatedDate=$(for %F in ("BridgeSetupAbc.exe") do @for /f "tokens=1-3 delims=. " %a in ("%~tF") do @for /f "tokens=2 delims= " %t in ("%~tF") do @echo %c-%b-%aT%t:00)
fileCreatedDate=$(date -d @"$(stat -c %Y $downloadFileName)" '+%Y-%m-%dT%H:%M:%S')
echo "File created date: $fileCreatedDate"
if [ "$downloadFileName" != "$uploadFileName" ]; then