fix: auto-fix linting issues

This commit is contained in:
alexbelgium
2025-09-14 00:31:04 +00:00
committed by github-actions[bot]
parent 88c75181e3
commit 17aad2586c
5 changed files with 5 additions and 5 deletions

View File

@@ -51,7 +51,7 @@ if [[ -d "$HOME/BirdNET-Pi/model/labels_nm2" ]]; then
fi
if bashio::config.true 'Use_tphakala_model_v2'; then
echo "... applying tphakala model v2"
if [[ -f "$HOME/BirdNET-Pi/model/BirdNET-Go_classifier.tflite" ]] && [[ -d "$HOME/BirdNET-Pi/model/labels_go" ]]; then
if [[ -f "$HOME/BirdNET-Pi/model/BirdNET-Go_classifier.tflite" ]] && [[ -d "$HOME/BirdNET-Pi/model/labels_go" ]]; then
# Move labels
mv "$HOME/BirdNET-Pi/model/labels_nm" "$HOME/BirdNET-Pi/model/labels_nm2" || bashio::log.warning "Failed to move labels_nm"
mv "$HOME/BirdNET-Pi/model/labels_go" "$HOME/BirdNET-Pi/model/labels_nm" || bashio::log.warning "Failed to move labels_go"
@@ -59,7 +59,7 @@ if bashio::config.true 'Use_tphakala_model_v2'; then
mv "$HOME/BirdNET-Pi/model/BirdNET_GLOBAL_6K_V2.4_MData_Model_V2_FP16.tflite" "$HOME/BirdNET-Pi/model/BirdNET_GLOBAL_6K_V2.4_MData_Model_V2_FP16.tflite2" || bashio::log.warning "Failed to move base model"
mv "$HOME/BirdNET-Pi/model/BirdNET-Go_classifier.tflite" "$HOME/BirdNET-Pi/model/BirdNET_GLOBAL_6K_V2.4_MData_Model_V2_FP16.tflite" || bashio::log.warning "Failed to move Go classifier"
else
bashio::log.fatal "model or labels not found, skipping"
bashio::log.fatal "model or labels not found, skipping"
fi
fi

View File

@@ -11,9 +11,9 @@ if ! git rev-parse --git-dir > /dev/null 2>&1; then
fi
# If this is a shallow clone, fetch enough history to compute merge bases
if git rev-parse --is-shallow-repository >/dev/null 2>&1 && git rev-parse --is-shallow-repository | grep -q true; then
echo "🔄 Repository is shallow; fetching full history to enable merging…"
git fetch --unshallow || git fetch --deepen=100000
if git rev-parse --is-shallow-repository > /dev/null 2>&1 && git rev-parse --is-shallow-repository | grep -q true; then
echo "🔄 Repository is shallow; fetching full history to enable merging…"
git fetch --unshallow || git fetch --deepen=100000
fi
# Get list of open, non-draft PR numbers via GitHub API