Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
Signed-off-by: Daisuke Sato <daisukes@cmu.edu>
  • Loading branch information
daisukes committed Apr 11, 2024
1 parent 9b9822c commit 73c91a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions manage-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@ done
shift $((OPTIND - 1))

error=0
pat=$(join_by "|" "$all_actions")
# shellcheck disable=SC2086
pat=$(join_by "|" $all_actions)
if [[ -z $actions ]] || [[ ! $actions =~ ^($pat)$ ]]; then
red "need to specify action $pat"
error=1
fi

pat="all|"$(join_by "|" "$all_images")
# shellcheck disable=SC2086
pat="all|"$(join_by "|" $all_images)
if [[ -z "$images" ]] || [[ ! "$images" =~ ^($pat)( ($pat))*$ ]]; then
red "need to specify image, $pat"
error=1
Expand Down
3 changes: 1 addition & 2 deletions setup-dependency.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ fi
declare -A visited

for ((i = 1; i <= count; i++)); do
files=$(find . -name "dependency.repos")

readarray -t files < <(find . -name "dependency.repos")
flag=0
for line in "${files[@]}"; do
if [[ -z ${visited[$line]} ]]; then
Expand Down

0 comments on commit 73c91a7

Please sign in to comment.