Git Product home page Git Product logo

Comments (8)

arshadkazmi42 avatar arshadkazmi42 commented on June 1, 2024

Can you also share which version of node and npm are you using?

from squash.

theNaut1lus avatar theNaut1lus commented on June 1, 2024

@arshadkazmi42
Latest I hope.

screenshot 2019-02-14 at 3 19 19 pm

from squash.

arshadkazmi42 avatar arshadkazmi42 commented on June 1, 2024

Are you getting this error every time you are squashing a command?

You should add your command inside double quotes if it contains spaces
sudo squash "diskutil list" --alias=diskking

from squash.

theNaut1lus avatar theNaut1lus commented on June 1, 2024
  1. Yes. to be more clear the command does get added and it does work and doesn't throw error when we run the squashed command but creating a new alias causes this.

screenshot 2019-02-14 at 3 22 23 pm

You should add your command inside double quotes if it contains spaces
sudo squash "diskutil list" --alias=diskking

  1. Got it.

from squash.

arshadkazmi42 avatar arshadkazmi42 commented on June 1, 2024

I just tried it in another laptop. I can reproduce it, looks like some issue in create directory logic.
I will look into this later today.
Thank you for reporting

from squash.

theNaut1lus avatar theNaut1lus commented on June 1, 2024

@arshadkazmi42 Would like to work in this with you if possible. Is there any way this could be possible

from squash.

arshadkazmi42 avatar arshadkazmi42 commented on June 1, 2024

@co16353sidak Sure.
You can send a PR for this if you like.
The issue is somewhere here

https://github.com/arshadkazmi42/squash/blob/master/lib/file-operations/command-create.js#L12
https://github.com/arshadkazmi42/squash/blob/master/lib/squash.js#L35

Create directory is getting called twice.
We can remove createDirectory from command-create.js file.
as its handled in squash.js
I think this should fix this issue.

from squash.

theNaut1lus avatar theNaut1lus commented on June 1, 2024

Please check.

from squash.

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.