From ce109602cb30aebdb6b3c2f3e82f19b29558f325 Mon Sep 17 00:00:00 2001 From: Joakim Roubert Date: Tue, 21 Apr 2020 14:24:16 +0200 Subject: [PATCH] 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 --- scripts/package-cli | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/package-cli b/scripts/package-cli index 4ca3a6f27f..f33d8c66dd 100755 --- a/scripts/package-cli +++ b/scripts/package-cli @@ -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