We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e085bbe commit 59fd61aCopy full SHA for 59fd61a
.github/workflows/ci.yml
@@ -102,8 +102,9 @@ jobs:
102
install_output=$(vcpkg install ${dir##ports/} --overlay-ports=ports) || status=$?
103
if [[ ! $status -eq 0 ]]; then
104
echo " Update hash on $dir/portfile.cmake"
105
- expected=$(echo "$install_output" | grep -oP "(?<=Expected hash: ).{128}")
106
- actual=$(echo "$install_output" | grep -oP "(?<=Actual hash: ).{128}")
+ hashes=$(echo "$install_output" | grep -oP "(?<=: )[\d\w]{128}")
+ expected=$(echo $hashes | cut -d' ' -f1)
107
+ actual=$(echo $hashes | cut -d' ' -f2)
108
sed -i "s@${expected}@${actual}@g" "$dir/portfile.cmake"
109
echo " Expected hash: ${expected}"
110
echo " Actual hash: ${actual}"
0 commit comments