Skip to content

Commit a6e6291

Browse files
author
Dark Decoy
committed
Removed Duplicates
Updated error messages Signed-off-by: Dark Decoy <[email protected]>
1 parent 68a0d0f commit a6e6291

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

bin/hedgedoc

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)