Skip to content

Commit

Permalink
Updated README file checker script
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyPex committed Aug 5, 2024
1 parent 082ad4b commit 516ec88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/readme_file_checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ else
COUNTER=0

mapfile -t CHALLS_UNDER_DIR < <(echo $(ls "$1" | sort))
mapfile -t CHALLS_IN_TABLE < <(echo $(grep -P "^\|" "$2" | tail -n $(($LINES_IN_TABLE - 2)) | cut -d '|' -f 2 | sort ))

mapfile -t CHALLS_IN_TABLE < <(echo $(grep -P "^\|" "$2" | tail -n $(($LINES_IN_TABLE - 2)) | cut -d '|' -f 2 | grep -Po "(?<=\[).+(?=\])" | sort ))

for dir_chall in "${CHALLS_UNDER_DIR[@]}"
do
Expand Down
2 changes: 1 addition & 1 deletion .gitlab/scripts/readme_file_checker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ else
COUNTER=0

mapfile -t CHALLS_UNDER_DIR < <(echo $(ls "$1" | sort))
mapfile -t CHALLS_IN_TABLE < <(echo $(grep -P "^\|" "$2" | tail -n $(($LINES_IN_TABLE - 2)) | cut -d '|' -f 2 | sort ))
mapfile -t CHALLS_IN_TABLE < <(echo $(grep -P "^\|" "$2" | tail -n $(($LINES_IN_TABLE - 2)) | cut -d '|' -f 2 | grep -Po "(?<=\[).+(?=\])" | sort ))


for dir_chall in "${CHALLS_UNDER_DIR[@]}"
Expand Down

0 comments on commit 516ec88

Please sign in to comment.