Implement a patch for jtoty/Libftest because nm -g libft.a on MacOS X return _ft_lstdelone (unlike Linux which returns ft_lstdelone with _ as prefix) so ./grademe.sh -u -ob does not work on MacOS X
This commit is contained in:
11
libft/Libftest.patch
Normal file
11
libft/Libftest.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/srcs/check_file.sh
|
||||
+++ b/srcs/check_file.sh
|
||||
@@ -148,7 +148,7 @@ check_turned_in_functions()
|
||||
printf "\n${text}" >> ${PATH_DEEPTHOUGHT}/deepthought
|
||||
printf "%.s=" $(seq 1 $(( 80 - ${#text} ))) >> ${PATH_DEEPTHOUGHT}/deepthought
|
||||
printf "\n" >> ${PATH_DEEPTHOUGHT}/deepthought
|
||||
- if [[ -n $(echo ${LIB_CONTENT} | grep -w $(echo ${1})) ]]
|
||||
+ if [[ -n $(echo ${LIB_CONTENT} | grep -w $(echo ${1})) ]] || [[ -n $(echo ${LIB_CONTENT} | grep -w _$(echo ${1})) ]]
|
||||
then
|
||||
retvalue=1
|
||||
return "$retvalue"
|
||||
Reference in New Issue
Block a user