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

Make imager sh-compatible. #7

Open
KajWiik opened this issue Sep 28, 2024 · 1 comment
Open

Make imager sh-compatible. #7

KajWiik opened this issue Sep 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@KajWiik
Copy link

KajWiik commented Sep 28, 2024

# sh image /dev/sdc
image: 8: [: latest: unexpected operator
ALPINEBOX: Getting release latest...
ALPINEBOX: Writing https://github.com/psy0rz/alpinebox/releases/download/latest/alpine.img.gz to disk /dev/sdc ...
/usr/bin/wget
--2024-09-28 20:15:34--  https://github.com/psy0rz/alpinebox/releases/download/latest/alpine.img.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2024-09-28 20:15:35 ERROR 404: Not Found.


gzip: stdin: unexpected end of file

The fix is to use implicitly bash and not dash via sh in some systems (Ubuntu):

bash image /dev/sdc

So, this is just a suggestion to edit the README a little... Otherwise the installer looks fantastic!

@psy0rz psy0rz added the bug Something isn't working label Oct 1, 2024
@psy0rz
Copy link
Owner

psy0rz commented Oct 1, 2024

Thats a good point, ill try to change the script so its sh-compatible.

@psy0rz psy0rz changed the title Install with image fails Make imager sh-compatible. Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants