File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -187,31 +187,13 @@ function info_note() {
187187 local json=" $2 "
188188
189189 if [[ ! " $note_id " ]]; then
190- echo " Error: You must specify an export type and note id to export ." >&2
190+ echo " Error: You must specify a note id to retrieve metadata from the server ." >&2
191191 echo " " >&2
192192 echo " Usage: $SCRIPTNAME info <note_id> [--json]" >&2
193193 echo " For usage exmaples, see: $SCRIPTNAME help" >&2
194194 return 2
195195 fi
196196
197- local json=" $2 "
198-
199- if [[ ! " $note_id " ]]; then
200- echo " Error: You must specify an export type and note id to export." >&2
201- echo " " >&2
202- echo " Usage: $SCRIPTNAME info <note_id> [--json]" >&2
203- echo " For usage exmaples, see: $SCRIPTNAME help" >&2
204- return 2
205- fi
206-
207- if [[ " $json " == " --json" ]]
208- then
209-
210- curl \
211- --silent \
212- --cookie " $HEDGEDOC_COOKIES_FILE " \
213- " ${HEDGEDOC_SERVER} /$note_id /info"
214-
215197 if [[ " $json " == " --json" ]]
216198 then
217199
You can’t perform that action at this time.
0 commit comments