Skip to content

Commit 7a55ece

Browse files
committed
PROGRESS
1 parent db06501 commit 7a55ece

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/source/examples.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ The following API does two tasks: add users and fetch users.
122122
123123
USER_NAME=$(mock get-payload name)
124124
USER_EMAIL=$(mock get-payload email)
125-
USER_COUNT=$(ls $DATA_DIR | wc -l)
126-
NEW_USER_ID="$(printf "%s + 1\n" "${USER_COUNT}" | bc)"
125+
NEW_USER_ID="$(ls $DATA_DIR | wc -l | sed "s/$/+1/" | bc)"
127126
128127
printf "New user ID generated: %s\n" "${NEW_USER_ID}"
129128

0 commit comments

Comments
 (0)