fix: readlink before mv

This commit is contained in:
Bastien Riviere 2024-10-15 22:47:47 +02:00
parent 0e8cf5c63a
commit cb3f637350
Signed by: babariviere
GPG key ID: 4E5F0839249F162E

View file

@ -21,7 +21,9 @@ RUN mv /root/go/bin/* /usr/local/bin/
COPY krew-plugins / COPY krew-plugins /
RUN grep -v '^#' /krew-plugins | xargs -n1 kubectl krew install RUN grep -v '^#' /krew-plugins | xargs -n1 kubectl krew install
RUN rm /krew-plugins RUN rm /krew-plugins
RUN mv /root/.krew/bin/* /usr/local/bin/ RUN for bin in /root/.krew/bin/*; do \
mv $(readlink $bin) /usr/local/bin/$(basename $bin); \
done
RUN ln -fs /bin/sh /usr/bin/sh && \ RUN ln -fs /bin/sh /usr/bin/sh && \
ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \ ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/docker && \