Extend outdated/update scripts for s3-browser
This commit is contained in:
@@ -37,12 +37,17 @@ run_and_track "Sqlean" "mix sqlean.update_version" mix sqlean.check_version
|
|||||||
debug_msg "Checking outdated mix dependencies"
|
debug_msg "Checking outdated mix dependencies"
|
||||||
run_and_track "Mix dependencies" "mix deps.update --all" mix hex.outdated --all
|
run_and_track "Mix dependencies" "mix deps.update --all" mix hex.outdated --all
|
||||||
|
|
||||||
|
debug_msg "Checking outdated pi s3-browser dependencies..."
|
||||||
|
run_and_track "pi s3-browser dependencies" \
|
||||||
|
"npm update --prefix .pi/extensions/s3-browser" \
|
||||||
|
npm outdated --prefix .pi/extensions/s3-browser
|
||||||
|
|
||||||
# Print summary table
|
# Print summary table
|
||||||
echo ""
|
echo ""
|
||||||
echo "========================================================================"
|
echo "========================================================================"
|
||||||
echo "Summary"
|
echo "Summary"
|
||||||
echo "========================================================================"
|
echo "========================================================================"
|
||||||
printf "%-20s | %-16s | %s\n" "Dependency" "Status" "Next Step"
|
printf "%-26s | %-16s | %s\n" "Dependency" "Status" "Next Step"
|
||||||
echo "------------------------------------------------------------------------"
|
echo "------------------------------------------------------------------------"
|
||||||
|
|
||||||
red=$(tput setaf 1)
|
red=$(tput setaf 1)
|
||||||
@@ -55,9 +60,9 @@ for i in "${!command_names[@]}"; do
|
|||||||
next_step="${command_next_steps[$i]}"
|
next_step="${command_next_steps[$i]}"
|
||||||
|
|
||||||
if [ "$result" -eq 0 ]; then
|
if [ "$result" -eq 0 ]; then
|
||||||
printf "%-20s | %s%-18s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" "Nothing to do"
|
printf "%-26s | %s%-18s%s | %s\n" "$name" "$green" "✓ Up to date" "$normal" "Nothing to do"
|
||||||
else
|
else
|
||||||
printf "%-20s | %s%-18s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step"
|
printf "%-26s | %s%-18s%s | %s\n" "$name" "$red" "✗ Outdated" "$normal" "$next_step"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ mix deps.update --all
|
|||||||
|
|
||||||
mix usage_rules.sync
|
mix usage_rules.sync
|
||||||
|
|
||||||
|
debug_msg "Updating pi s3-browser dependencies"
|
||||||
|
|
||||||
|
npm update --prefix .pi/extensions/s3-browser
|
||||||
|
|
||||||
debug_msg "Updating gh extensions"
|
debug_msg "Updating gh extensions"
|
||||||
|
|
||||||
gh extension upgrade gfm-preview
|
gh extension upgrade gfm-preview
|
||||||
|
|||||||
Reference in New Issue
Block a user