Skip to content

Commit 3db2d9b

Browse files
committed
fix shellcheck files and cleanup the logs
1 parent 6bf24e9 commit 3db2d9b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ wait_for_all_background_jobs() {
202202
for failure in "${failures[@]}"; do
203203
echo -e "$failure"
204204
done
205-
echo -e "${RED}To see the details look for the job's logs by it's prefixed name (e.g. \"shellcheck:\").${NO_COLOR}"
205+
echo -e "${RED}To see the details look for the job's logs by it's prefixed name (e.g. \"shellcheck failed\").${NO_COLOR}"
206206
return 1
207207
fi
208208

@@ -229,7 +229,6 @@ pre_commit() {
229229
# Function to run shellcheck on a single file
230230
run_shellcheck() {
231231
local file="$1"
232-
echo "Running shellcheck on $file"
233232

234233
local diff_output
235234
diff_output=$(shellcheck -f diff "$file" -e SC2154 -e SC1091 -e SC1090 -e SC2148 -o require-variable-braces -P "scripts" 2>&1)

scripts/dev/recreate_python_venv.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ ensure_required_python() {
7777
# Install python3-venv package for Debian/Ubuntu systems if needed
7878
if command -v apt-get &> /dev/null; then
7979
echo "Installing python3-venv package for venv support..." >&2
80-
sudo apt-get update -qq && sudo apt-get install -y python3-venv || true
80+
sudo apt-get update -qq || true
81+
sudo apt-get install -y python3-venv || true
8182
fi
8283
return 0
8384
fi

scripts/minikube/setup_minikube.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ EOF
2929
}
3030

3131
# retrieve arch variable off the shell command line
32-
ARCH=${1-"$(detect_architecture)"}
32+
ARCH="$(detect_architecture)"
3333

3434
echo "Setting up minikube host for architecture: ${ARCH}"
3535

@@ -63,7 +63,7 @@ setup_local_registry_and_custom_image() {
6363

6464
# Wait for registry to be ready
6565
echo "Waiting for registry to be ready..."
66-
for i in {1..30}; do
66+
for _ in {1..30}; do
6767
if curl -s http://localhost:5000/v2/_catalog >/dev/null 2>&1; then
6868
break
6969
fi

0 commit comments

Comments
 (0)