Skip to content

Commit

Permalink
use -f to remove binaries
Browse files Browse the repository at this point in the history
Signed-off-by: Prakhar Gurunani <[email protected]>
  • Loading branch information
FirePing32 committed Oct 26, 2023
1 parent 1102d60 commit e6130fd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/remove_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ uninstall_protoc() {

if [ -f "$dist/bin/protoc" ]; then
unlink "$dist/bin/protoc"
rm "$VTROOT/bin/protoc"
rm -f "$VTROOT/bin/protoc"
fi
if [[ "${dist##*/}" == "vt-protoc-$PROTOC_VER" ]]; then
rm -rf "$dist"
Expand Down Expand Up @@ -72,11 +72,11 @@ uninstall_etcd() {

if [ -f "$dist/etcd-${version}-${platform}-${target}/etcd" ]; then
unlink "$dist/etcd-${version}-${platform}-${target}/etcd"
rm "$VTROOT/bin/etcd"
rm -f "$VTROOT/bin/etcd"
fi
if [ -f "$dist/etcd-${version}-${platform}-${target}/etcdctl" ]; then
unlink "$dist/etcd-${version}-${platform}-${target}/etcdctl"
rm "$VTROOT/bin/etcdctl"
rm -f "$VTROOT/bin/etcdctl"
fi

if [[ "${dist##*/}" == "etcd" ]]; then
Expand All @@ -90,7 +90,7 @@ uninstall_consul() {

if [ -f "$dist/consul" ]; then
unlink "$dist/consul"
rm "$VTROOT/bin/consul"
rm -f "$VTROOT/bin/consul"
fi
if [[ "${dist##*/}" == "consul" ]]; then
rm -rf "$dist"
Expand Down Expand Up @@ -118,7 +118,7 @@ uninstall_toxiproxy() {

if [ -f "$dist/$file" ]; then
unlink "$dist/$file"
rm "$VTROOT/bin/toxiproxy-server"
rm -f "$VTROOT/bin/toxiproxy-server"
fi
if [[ "${dist##*/}" == "toxiproxy" ]]; then
rm -rf "$dist"
Expand Down

0 comments on commit e6130fd

Please sign in to comment.