-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
86 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
NON_TERMINAL_STATUSES=("DRAFT, NOT READY TO SIGN" "CONTINGENCY TASK, SIGN AS NEEDED" "READY TO SIGN") | ||
TERMINAL_STATUSES=("SIGNED" "EXECUTED" "CANCELLED") | ||
VALID_STATUSES=( "${NON_TERMINAL_STATUSES[@]}" "${TERMINAL_STATUSES[@]}" ) | ||
|
||
# Find README.md files for all tasks and process them. | ||
files=$(find ./tasks -type f -path './tasks/*/*/README.md') | ||
|
||
# Filters: | ||
# Name of a file to exclude from searching for non-terminal tasks. | ||
FOLDER_WITH_NO_TASKS="templates" | ||
# Name of a file in a task directiory that specifies that the task is a nested safe task. | ||
IF_THIS_ITS_NESTED="NestedSignFromJson.s.sol" | ||
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
TASKS_DIR="$BASE_DIR/../../tasks" | ||
export TEMPLATES_FOLDER_WITH_NO_TASKS="templates" | ||
export NESTED_SAFE_TASK_INDICATOR="NestedSignFromJson.s.sol" | ||
|
||
# Status arrays | ||
export NON_TERMINAL_STATUSES=("DRAFT, NOT READY TO SIGN" "CONTINGENCY TASK, SIGN AS NEEDED" "READY TO SIGN") | ||
export TERMINAL_STATUSES=("SIGNED" "EXECUTED" "CANCELLED") | ||
export VALID_STATUSES=( "${NON_TERMINAL_STATUSES[@]}" "${TERMINAL_STATUSES[@]}" ) | ||
|
||
# Find README.md files for all tasks | ||
FILES_FOUND_BY_GET_VALID_STATUSES=$(find "$TASKS_DIR" -type f -path "$TASKS_DIR/*/*/README.md") | ||
export FILES_FOUND_BY_GET_VALID_STATUSES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters