If I use this link to install docker-compose, I get Not Found error:
[root@hostname ~]# curl -L "https://github.com/docker/compose/releases/download/2.9.0/docker-compose-$(uname -s)-$(uname -m)" -o here
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 9 100 9 0 0 37 0 --:--:-- --:--:-- --:--:-- 37
[root@hostname ~]# cat here
Not Found
That's because the actual file is docker-compose-linux-x86_64
with small l
, while:
[root@hostname ~]# echo $(uname -s)-$(uname -m)
Linux-x86_64
It returns capital L
.
I saw man curl
but did not see any entry for checking case-insensitive link.