Commit ce109602 authored by Joakim Roubert's avatar Joakim Roubert

package-cli: Remove superfluous file exist check

The command rm -f will succeed even if run for a file that does not exist. Hence it is superfluous to existence check a file that we want to purge with rm -f, which makes the script a bit simpler to read. Change-Id: If4eafea568301f418e0dd533e7175781ebf6000a Signed-off-by: 's avatarJoakim Roubert <joakimr@axis.com>
parent c14dac9a
......@@ -13,10 +13,8 @@ ln -s containerd bin/k3s-server
ln -s containerd bin/kubectl
ln -s containerd bin/crictl
for i in bridge flannel host-local loopback portmap; do
if [ -e ./bin/$i ]; then
rm -f ./bin/$i
fi
ln -s cni ./bin/$i
rm -f bin/$i
ln -s cni bin/$i
done
cp contrib/util/check-config.sh bin/check-config
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment