mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
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: Joakim Roubert <joakimr@axis.com>
This commit is contained in:
parent
c14dac9aa4
commit
ce109602cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user