Code Monkey home page Code Monkey logo

Comments (8)

bacongravy avatar bacongravy commented on July 21, 2024

Oh! That’s unfortunate. I’m sorry I didn’t take that into account.

I can definitely split the KextPolicy code up into one piece that creates the file, if necessary, and another that inserts the values.

I will also consider moving the user script execution to happen after the customizations for VMware get laid down.

from macinbox.

egandro avatar egandro commented on July 21, 2024

I suggest splitting you code in parts:

  1. Create the SQL File if it does not exist but without inserts

2)Always to this Insert / Replaces Statements

BEGIN TRANSACTION;
INSERT OR REPLACE INTO kext_policy VALUES('EG7KH642X6','com.vmware.kext.VMwareGfx',1,'VMware, Inc.',1);
INSERT OR REPLACE INTO kext_policy VALUES('EG7KH642X6','com.vmware.kext.vmmemctl',1,'VMware, Inc.',1);
INSERT OR REPLACE INTO kext_policy VALUES('EG7KH642X6','com.vmware.kext.vmhgfs',1,'VMware, Inc.',1);
COMMIT;

from macinbox.

bacongravy avatar bacongravy commented on July 21, 2024

I've implemented that here:

https://github.com/bacongravy/macinbox/compare/bcc8f9fbbe6ab6cb478bf44905779d16db4e5859..bff9b52a1df5e5d5c17e51c4de6c4e6e002ecbe0

Please let me know if that resolves the issue for you.

from macinbox.

egandro avatar egandro commented on July 21, 2024

Thanks a lot!

I will test this today.

from macinbox.

egandro avatar egandro commented on July 21, 2024

Btw. can you please check for the return code of the script?

If the result is != 0 fail stop the execution of macinbox.

from macinbox.

egandro avatar egandro commented on July 21, 2024

We can now debug user scripts :)

Check my pull request.

from macinbox.

bacongravy avatar bacongravy commented on July 21, 2024

Thanks! I’m away from my computer this weekend but I’ll see about getting your sample scripts merged in after that.

It should already be the case that when a user-script exits non-zero it fails the process, are you seeing different behavior?

from macinbox.

bacongravy avatar bacongravy commented on July 21, 2024

Tagged and released: https://github.com/bacongravy/macinbox/tree/v3.3.0

from macinbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.