kou commented on code in PR #49151:
URL: https://github.com/apache/arrow/pull/49151#discussion_r2766618675


##########
.github/workflows/cpp_extra.yml:
##########
@@ -472,6 +472,20 @@ jobs:
         run: |
           mkdir odbc-installer
           mv *.msi odbc-installer/
+
+          # Add `dev-yyyy-mm-dd` to ODBC MSI before `win64.msi`
+          cd odbc-installer
+          msi_name=$(ls *.msi)
+          echo $msi_name
+          SUFFIX=dev-$(date +%Y-%m-%d)-
+          echo $SUFFIX
+          INDEX=${#msi_name}-9
+          dev_msi_name="${msi_name:0:$INDEX}${SUFFIX}${msi_name:$INDEX}"
+          echo $msi_name
+          echo $dev_msi_name

Review Comment:
   How about using `sed`?
   
   ```suggestion
             msi_name=$(ls *.msi)
             dev_msi_name=$(echo ${msi_name} | sed -e "s/win64\.msi$/dev-$(date 
+%Y-%m-%d)-win64.msi/")
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to