Skip to content

Commit

Permalink
Adopt another shellcheck recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Sep 20, 2024
1 parent f052288 commit 960720d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/add-formula.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ jobs:
if [ "${CBMC_BREW}" = "${CBMC_LATEST}" ] ; then
formula_base=$(find Formula/ -type f | sort | tail -1)
sed '/bottle do/Q' "Formula/${formula_base}" > "Formula/cbmc@${CBMC_LATEST}.rb"
version_no_dot=$(echo "${CBMC_LATEST}" | sed 's/\.//g')
sed -i "1s/CbmcAT[[:digit:]]*/CbmcAT${version_no_dot}/" "Formula/cbmc@${CBMC_LATEST}.rb"
sed -i "1s/CbmcAT[[:digit:]]*/CbmcAT${CBMC_LATEST//./}/" "Formula/cbmc@${CBMC_LATEST}.rb"
sed -i "5s/\".*\"/\"cbmc-${CBMC_LATEST}\"/" "Formula/cbmc@${CBMC_LATEST}.rb"
sed -i "6s/\".*\"/\"cbmc-${CBMC_LATEST_REV}\"/" "Formula/cbmc@${CBMC_LATEST}.rb"
./transform_binary.sh "${CBMC_LATEST}" >> "Formula/cbmc@${CBMC_LATEST}.rb"
Expand Down

0 comments on commit 960720d

Please sign in to comment.