Add sensitive-file-guard path to setup/outdated/update scripts

This commit is contained in:
Claudio Ortolina
2026-05-11 18:22:40 +01:00
parent 091d5647a8
commit 8c029aea01
3 changed files with 14 additions and 3 deletions
+8 -3
View File
@@ -42,12 +42,17 @@ run_and_track "pi s3-browser dependencies" \
"npm update --prefix .pi/extensions/s3-browser" \
npm outdated --prefix .pi/extensions/s3-browser
debug_msg "Checking outdated pi sensitive-file-guard dependencies..."
run_and_track "pi sensitive-file-guard dependencies" \
"npm update --prefix .pi/extensions/sensitive-file-guard" \
npm outdated --prefix .pi/extensions/sensitive-file-guard
# Print summary table
echo ""
echo "========================================================================"
echo "Summary"
echo "========================================================================"
printf "%-26s | %-16s | %s\n" "Dependency" "Status" "Next Step"
printf "%-36s | %-16s | %s\n" "Dependency" "Status" "Next Step"
echo "------------------------------------------------------------------------"
red=$(tput setaf 1)
@@ -60,9 +65,9 @@ for i in "${!command_names[@]}"; do
next_step="${command_next_steps[$i]}"
if [ "$result" -eq 0 ]; then
printf "%-26s | %s%-18s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" "Nothing to do"
printf "%-36s | %s%-18s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" "Nothing to do"
else
printf "%-26s | %s%-18s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step"
printf "%-36s | %s%-18s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step"
fi
done
+2
View File
@@ -21,3 +21,5 @@ gh extension install thiagokokada/gh-gfm-preview
mix setup
npm ci --prefix .pi/extensions/s3-browser
npm ci --prefix .pi/extensions/sensitive-file-guard
+4
View File
@@ -27,6 +27,10 @@ debug_msg "Updating pi s3-browser dependencies"
npm update --prefix .pi/extensions/s3-browser
debug_msg "Updating pi sensitive-file-guard dependencies"
npm update --prefix .pi/extensions/sensitive-file-guard
debug_msg "Updating gh extensions"
gh extension upgrade gfm-preview