This commit is contained in:
Robin Appelman 2024-03-31 18:53:29 +02:00
commit e12e95c563

View file

@ -1,23 +0,0 @@
diff --git a/patch-fbc.sh b/patch.sh
index 03bd467..2e78af9 100644
--- a/patch.sh
+++ b/patch.sh
@@ -406,12 +406,9 @@ list_supported_versions () {
get_supported_versions
}
-case "${opmode}" in
- patch) patch ;;
- patchrollback) rollback ;;
- patchhelp) print_usage ; exit 2 ;;
- patchcheckversion) query_version_support ;;
- patchlistversions) list_supported_versions ;;
- *) echo "Incorrect combination of flags. Use option -h to get help."
- exit 2 ;;
-esac
+for i in "${!object_list[@]}"
+do
+ echo "$i"
+ echo "${object_list[$i]}"
+done |
+jq -n -R 'reduce inputs as $i ({}; . + { ($i): (input|(tonumber? // .)) })'