getkirby / cli

Kirby Command Line Interface
MIT License
51 stars 5 forks source link

kirby install:kit is not working #43

Closed mi-skam closed 1 year ago

mi-skam commented 1 year ago

Using kirby cli *1.1.1, I cannot install any kits like plainkit. The installation folder is empty afterwards.

asciicast

plagasul commented 1 year ago

I am getting the same error on Linux mint 21 cinnamon, composer 2.2.6

mv: cannot stat `/path/to/folder/*/{.[!.],}*': No such file or directory

The folder is created, but empty.

Other commands such as kirby make:command work.

Let me know if you want me to troubleshoot.

Thanks

plagasul commented 1 year ago

It seems the error comes from line 43 of the 'unzip' command, where it says:

exec('mv ' . $to . '/*/{.[!.],}* ' . $to . '/');

Simply trying to run kirby unzip file folder results in the same error

I am using zsh, but running on bash outputs the same error

I find two similar cases online where the issue is that * should go outside of the quotes, see here and here.

@mi-skam What is your OS ?

bastianallgeier commented 1 year ago

I'm closing this in favour of https://github.com/getkirby/cli/issues/44