Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Script contents are overwritten with the contents of the first script in an update operation #211

Closed
kdrwygvh opened this issue Aug 30, 2024 · 3 comments · Fixed by #212
Labels
bug Something isn't working verified The bug has been verified

Comments

@kdrwygvh
Copy link

Describe the bug
When performing an update, scripts are being overwritten with the contents of one of the scripts from the backup

To Reproduce
Steps to reproduce the behavior:

  1. Create two scripts in Intune, "Script 1" and "Script 2." The contents of the shell script can be a simple shebang and an echo line stating that the script is "script 1" and "script 2" respectively.
  2. Perform an IntuneCD backup operation to download those scripts to disk
  3. Perform an IntuneCD update operation

Expected behavior
The two scripts should still be in Intune and with the same script contents as they have on disk

Screenshots
Screenshot 2024-08-30 at 15 22 06
Screenshot 2024-08-30 at 15 22 16

Run type (please complete the following information):

  • Mode: 1
  • Client local machine
  • Version 2.3.4

Additional context
Add any other context about the problem here.

@kdrwygvh kdrwygvh added the bug Something isn't working label Aug 30, 2024
@almenscorner
Copy link
Owner

Able to replicate, will look into it

@almenscorner almenscorner added the verified The bug has been verified label Aug 30, 2024
@almenscorner
Copy link
Owner

Please try the latest beta and check that scripts are not being updated with incorrect content, pip3 install IntuneCD==2.3.5b1

@kdrwygvh
Copy link
Author

kdrwygvh commented Sep 1, 2024

2.3.5b1 appears to resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified The bug has been verified
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants