Skip to content

Commit

Permalink
Support --strict in Action
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Feb 15, 2023
1 parent d9d01af commit e443764
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/run-gh-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,18 @@ match=${GH_SETUP_MATCH}
bin_dir=${GH_SETUP_BIN_DIR}
bin_match=${GH_SETUP_BIN_MATCH}
force=${GH_SETUP_FORCE}
strict=${GH_SETUP_STRICT}

if [ -z "${force}" ]; then
${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match}
if [ -z "${strict}" ]; then
${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match}
else
${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match}
fi
else
${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} --force
if [ -z "${strict}" ]; then
${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} --force
else
${bin} --repo ${repo} --version=${version} --os=${os} --arch=${arch} --bin-dir=${bin_dir} --bin-match=${bin_match} --force --strict
fi
fi

0 comments on commit e443764

Please sign in to comment.