Skip to content

Commit

Permalink
🔥 bashlib: quote output of parameter preset resolve result
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Jul 16, 2024
1 parent 11b76c9 commit 9ea8e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocrd/lib.bash
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ ocrd__parse_argv () {
-D|--dump-module-dir) echo $(dirname "$OCRD_TOOL_JSON"); exit ;;
-C|--show-resource) ocrd__show_resource "$2"; exit ;;
-L|--list-resources) ocrd__list_resources; exit ;;
-p|--parameter) __parameters+=(-p $(ocrd__resolve_resource "$2" 2>/dev/null || echo "$2")) ; shift ;;
-p|--parameter) __parameters+=(-p "$(ocrd__resolve_resource "$2" 2>/dev/null || echo "$2")") ; shift ;;
-P|--parameter-override) __parameter_overrides+=(-P "$2" "$3") ; shift ; shift ;;
-g|--page-id) ocrd__argv[page_id]=$2 ; shift ;;
-O|--output-file-grp) ocrd__argv[output_file_grp]=$2 ; shift ;;
Expand Down

0 comments on commit 9ea8e95

Please sign in to comment.