- Use libalternatives instead of update-alternatives.
[ "$1" > 0 ] is wrong; that will create a file.
[ "$1" > 0 ]
Hm, what do you mean with "create a file" ? My intention here is to check if a previous version has already been installed.
[ "$1" -gt 0 ]
Ah, thanks. I have fixed it. https://build.opensuse.org/request/show/919518
Is there any plan to upstream libalternatives support?
Good question. It will depend how popular libalternatives already is. I will ask the regarding persons....
I would suppose that alternatives are rarely an upstream concern; this is instead a distro matter, because the distro decides whether or not, and how, it wants to provide multiple implementations.
schubi2 created request over 2 years ago
jengelh accepted request over 2 years ago
dspinella
jengelh
The Open Build Service is an openSUSE project.
[ "$1" > 0 ]
is wrong; that will create a file.Hm, what do you mean with "create a file" ? My intention here is to check if a previous version has already been installed.
[ "$1" -gt 0 ]
Ah, thanks. I have fixed it. https://build.opensuse.org/request/show/919518
Is there any plan to upstream libalternatives support?
Good question. It will depend how popular libalternatives already is. I will ask the regarding persons....
I would suppose that alternatives are rarely an upstream concern; this is instead a distro matter, because the distro decides whether or not, and how, it wants to provide multiple implementations.