From fd50298895d82d3aca1d1d927587b8d4229e9447 Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sat, 31 Aug 2024 16:50:53 -0400 Subject: [PATCH] delint Signed-off-by: Yuri Shkuro --- scripts/clean-binaries.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/clean-binaries.sh b/scripts/clean-binaries.sh index 47fc8e486af..7026bb34d58 100755 --- a/scripts/clean-binaries.sh +++ b/scripts/clean-binaries.sh @@ -7,9 +7,9 @@ platforms=$(make echo-platforms) for main in ./cmd/*/main.go; do dir=$(dirname "$main") bin=$(basename "$dir") - rm -rf "$dir/$bin" + rm -rf "${dir:?}/$bin" for platform in $(echo "$platforms" | tr ',' ' ' | tr '/' '-'); do - b="$dir/$bin-$platform" + b="${dir:?}/$bin-$platform" echo "$b" rm -f "$b" done