Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Aug 24, 2015
1 parent 45d289e commit 9b8ff3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skeleton.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if [ -z "$leetcode_name" ]; then
exit;
fi

info=`curl -s https://leetcode.com/problemset/algorithms/ | grep missing-number -B 2`
info=`curl -s https://leetcode.com/problemset/algorithms/ | grep $leetcode_name -B 2`
IFS=
leetcode_id=`(sed 's/<td>\\(.*\\)<\\/td>/\\1/' | sed 's/^ *//') < <(echo $info | head -n 1)`
title=`(sed 's/<a.*>\\(.*\\)<\\/a>/\\1/' | sed 's/^ *//') < <(echo $info | tail -n 1)`
Expand Down

0 comments on commit 9b8ff3c

Please sign in to comment.