linux cmd
This commit is contained in:
parent
03480bd468
commit
3401b0ff60
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user