Skip to content

Commit 9b8ff3c

Browse files
committed
fix typo
1 parent 45d289e commit 9b8ff3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skeleton.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ -z "$leetcode_name" ]; then
77
exit;
88
fi
99

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

0 commit comments

Comments
 (0)