fix: readlink before mv
This commit is contained in:
parent
0e8cf5c63a
commit
cb3f637350
1 changed files with 3 additions and 1 deletions
|
@ -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 && \
|
||||||
|
|
Loading…
Reference in a new issue